You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
3.5 KiB

<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>MathJax | TeX Samples</title>
<link rel="stylesheet" type="text/css" media="all" href="http://www.mathjax.org/wp-content/themes/mathjax/style.css" />
<link rel='stylesheet' id='mt-shcore-style-css' href='http://www.mathjax.org/wp-content/plugins/syntax-highlighter-mt/styles/shCore.css?ver=2.2.4' type='text/css' media='all' />
<link rel='stylesheet' id='mt-theme-style-css' href='http://www.mathjax.org/wp-content/plugins/syntax-highlighter-mt/styles/shThemeDefault.css?ver=2.2.4' type='text/css' media='all' />
<style type="text/css" id="custom-background-css">
body.custom-background { background-color: #d2d3d3; }
</style>
</head>
<body class="page page-id-612 page-child parent-pageid-13 page-template-default custom-background">
<div id="wrapper" class="hfeed">
<div id="main">
<div id="container">
<div id="content" role="main">
<div id="post-612" class="post-612 page type-page status-publish hentry">
<h1 class="entry-title">TeX Samples</h1>
<div class="entry-content">
<p>The following equations are represented in the HTML source code as LaTeX expressions.</p>
<div class="math-header">The Lorenz Equations</div>
\[\begin{aligned}
\dot{x} &amp; = \sigma(y-x) \\
\dot{y} &amp; = \rho x - y - xz \\
\dot{z} &amp; = -\beta z + xy
\end{aligned} \]
<div class="math-header">The Cauchy-Schwarz Inequality</div>
\[ \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) \]
<div class="math-header">A Cross Product Formula</div>
\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} &amp; \mathbf{j} &amp; \mathbf{k} \\
\frac{\partial X}{\partial u} &amp; \frac{\partial Y}{\partial u} &amp; 0 \\
\frac{\partial X}{\partial v} &amp; \frac{\partial Y}{\partial v} &amp; 0
\end{vmatrix} \]
<div class="math-header">The probability of getting \(k\) heads when flipping \(n\) coins is</div>
\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
<div class="math-header">An Identity of Ramanujan</div>
\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) 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} } } } \]
<div class="math-header">A Rogers-Ramanujan Identity</div>
\[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
\prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})},
\quad\quad \text{for $|q|&lt;1$}. \]
<div class="math-header">Maxwell&#8217;s Equations</div>
\[ \begin{aligned}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &amp; = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} &amp; = 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} &amp; = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} &amp; = 0 \end{aligned}
\]
<p>Finally, while display equations look good for a page of samples, the ability to mix math and text in a paragraph is also important. This expression \(\sqrt{3x-1}+(1+x)^2\) is an example of an inline equation. As you see, MathJax equations can be used this way as well, without unduly disturbing the spacing between lines.</p> </div><!-- .entry-content -->
</div><!-- #post-## -->
<div id="comments">
</div><!-- #comments -->
</div><!-- #content -->
</div><!-- #container -->
<style>#content { margin: 0 0 36px 0; }</style>
</div><!-- #main -->
</div><!-- #wrapper -->
</body>
</html>