📜 ⬆️ ⬇️

The MathJax javascript library transforms mathematical formulas in MathML or LaTeX into beautiful illustrations

Pay attention to this illustration here:

[summary of MathJax]

Beautiful, is not it?
')
This illustration came from the following code of mathematical formulas written in LaTeX along with plain HTML:
<p>The Lorenz Equations</p>
\[\begin{matrix}
\dot{x} & = & \sigma(yx) \\
\dot{y} & = & \rho x - y - xz \\
\dot{z} & = & -\beta z + xy
\end{matrix} \]

<p>The Cauchy-Schwarz Inequality</p>

\[ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \]

<p>A Cross Product Formula</p>

\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0
\end{vmatrix} \]

<p>The probability of getting \(k\) heads when flipping \(n\) coins is:</p>

\[P(E) = {n \choose k} p^k (1-p)^{ nk} \]

<p>An Identity of Ramanujan</p>
\[ \frac{1}{(\sqrt{\phi \sqrt{5}}-\phi) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \]
These are the wonders of the MathJax library, which was reviewed today on the Ajaxian blog.

However, when I looked at the MathJax site, the demo examples did not work: then one javascript did not load, then another.

Perhaps the site is simply overloaded with unexpected popularity.

Source: https://habr.com/ru/post/79059/


All Articles