Math in MyST¶
The MyST forms of the specimens on Math, each rendered live by this page’s own Markdown parser.
Display math¶
Display math
```{math} E = mc^2
```
```{math}
a^2 + b^2 = c^2
c = \sqrt{a^2 + b^2}
```
\[E = mc^2\]
\[ \begin{align}\begin{aligned}a^2 + b^2 = c^2\\c = \sqrt{a^2 + b^2}\end{aligned}\end{align} \]
Inline math¶
Inline math
The roots of {math}`ax^2 + bx + c = 0`
are {math}`x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}`.
The roots of \(ax^2 + bx + c = 0\) are \(x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\).