Re:Learn Physics with Functional Programming
by lvk on Tuesday September 05, 2023 @08:28PM
(#37399774)
Are there any other systems that can render programmatic equations to LaTeX?
[ Parent
| on HN ]
Re:Learn Physics with Functional Programming
by nequo on Tuesday September 05, 2023 @08:33PM
(#37399812)
SymPy[1] and Mathematica[2] can both render expressions in LaTeX, if this is what you mean.
[1] https://docs.sympy.org/latest/tutorials/intro-tutorial/print...
Re:Learn Physics with Functional Programming
by lying4fun on Wednesday September 06, 2023 @05:03AM
(#37402803)
I’m not the parent but do you know if there is a system/language that renders programmatic equations in-line in the editor? The closest thing I know of is the usage of Unicode symbols and Greek letters in Lean. I’m imagining a vscode extension that would interpret scientific code/equations and render those in-line or in a preview line above/below. Not sure about the utility of such a thing but it sure seems fun
Re:Learn Physics with Functional Programming
by heisenzombie on Wednesday September 06, 2023 @05:35AM
(#37402990)
It’s a bit of a stretch but if you write your equations in sympy in a Jupyter notebook, you can display nice LaTeX renders of the expressions and then either do math with them or just evaluate them as if you’d written them as a normal python function.