Inline Math Rules / Reference / Cheat Sheet?

benslinux
Wed, 03 Jan 2024 19:13:26 +0000
New to Julia

Is there a reference page somewhere in the Julia documentation with the rules for properly writing inline math strings? The string is then able to be converted with Latexify and used with Markdown to graphically render equations as shown below.

Step 1 - The inline math - julia> expression = :(y = x^2 / y - 2x)

Step 2 - Result using Latexify - y = \frac{x^{2}}{y} - 2 \cdot x

Step 3 - y = \frac{x^{2}}{y} - 2 \cdot x

Adding $ to front and end of Step 2 result and using Markdown will render formula as image - works here because this forum uses Markdown.

Latexify provides the result in Step 2 from Step 1 and Markdown uses that result and produces the image in Step 3. But it’s up to me to correctly input the original inline math string from a given equation. The algebra expression used here is easy to figure out, but for calculus and more complex equations, I need to know Julia’s rules and methods to correctly provide that inline math string for a given expression. Anyone know of a reference or cheat sheet for doing this?

18 posts - 5 participants