# MathJaxExamples

From SURAgrid

(Difference between revisions)

Jpr@uab.edu (Talk | contribs) (first test of SimpleMathJax extension) |
Jpr@uab.edu (Talk | contribs) (add another example) |
||

Line 13: | Line 13: | ||

When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are | When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are | ||

$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ | $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ | ||

+ | |||

+ | This is basic usage and should work: | ||

+ | <math>E=mc^2</math> |

## Revision as of 08:22, 23 January 2015

See how math markup works with SimpleMathJax extension

Lorenz equations from TeX examples:

[math]\begin{align} \dot{x} & = \sigma(y-x) \\ \dot{y} & = \rho x - y - xz \\ \dot{z} & = -\beta z + xy \end{align}[/math]

Another test, this time direct from MathJax:

When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

This is basic usage and should work: [math]E=mc^2[/math]