MATHJAX - Exemple 1

by M.V. 414

HTML

<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]} });
</script>

$ f(x)=\frac{1}{2}x^2+\sqrt{x} $
<hr />
$$ f(x)=\frac{1}{2}x^2+\sqrt{x} $$
<hr />
\( f(x)=\frac{1}{2}x^2+\sqrt{x} \)
<hr />
\[ f(x)=\frac{1}{2}x^2+\sqrt{x} \]
<hr />
Quand $a$, $b$, $c$ sont trois réels tels que $a \ne 0$ et $b^2-4ac > 0$,
l'équation \(ax^2 + bx + c = 0\) a deux solutions réelles distinctes :
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
<hr />
\[ M=\begin{pmatrix}
        1 & 2 & 3 & 4 \\
        5 & 6 & 7 & 8 \\
        9 & 10 & 11 & 12 \\
        13 & 14 & 15 & 16
     \end{pmatrix}
\]