Debian Codegraph @

manual/mathjax.html

raw
1 <!DOCTYPE html>
2 <html>
3 <!-- Copyright (c) 2012 Design Science, Inc. -->
4 <head>
5 <title>Math Test Page</title>
6 <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
7
8 <!-- This script tag is needed to make calibre's ebook-viewer recognize that this file needs math typesetting -->
9 <script type="text/x-mathjax-config">
10 // This line adds numbers to all equations automatically, unless explicitly suppressed.
11 MathJax.tex = {tags: 'all'};
12 </script>
13
14 <style>
15 h1 {text-align:center}
16 h2 {
17 font-weight: bold;
18 background-color: #DDDDDD;
19 padding: .2em .5em;
20 margin-top: 1.5em;
21 border-top: 3px solid #666666;
22 border-bottom: 2px solid #999999;
23 }
24 </style>
25 </head>
26 <body>
27
28 <h1>Sample Equations</h1>
29
30 <h2>The Lorenz Equations</h2>
31
32 <p>
33 \begin{align}
34 \dot{x} &amp; = \sigma(y-x) \label{lorenz}\\
35 \dot{y} &amp; = \rho x - y - xz \\
36 \dot{z} &amp; = -\beta z + xy
37 \end{align}
38 </p>
39
40 <h2>The Cauchy-Schwarz Inequality</h2>
41
42 <p>\[
43 \left( \sum_{k=1}^n a_k b_k \right)^{\!\!2} \leq
44 \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
45 \]</p>
46
47 <h2>A Cross Product Formula</h2>
48
49 <p>\[
50 \mathbf{V}_1 \times \mathbf{V}_2 =
51 \begin{vmatrix}
52 \mathbf{i} &amp; \mathbf{j} &amp; \mathbf{k} \\
53 \frac{\partial X}{\partial u} &amp; \frac{\partial Y}{\partial u} &amp; 0 \\
54 \frac{\partial X}{\partial v} &amp; \frac{\partial Y}{\partial v} &amp; 0 \\
55 \end{vmatrix}
56 \]</p>
57
58 <h2>The probability of getting \(k\) heads when flipping \(n\) coins is:</h2>
59
60 <p>\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]</p>
61
62 <h2>An Identity of Ramanujan</h2>
63
64 <p>\[
65 \frac{1}{(\sqrt{\phi \sqrt{5}}-\phi) e^{\frac25 \pi}} =
66 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
67 {1+\frac{e^{-8\pi}} {1+\ldots} } } }
68 \]</p>
69
70 <h2>A Rogers-Ramanujan Identity</h2>
71
72 <p>\[
73 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
74 \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})},
75 \quad\quad \text{for $|q|&lt;1$}.
76 \]</p>
77
78 <h2>Maxwell's Equations</h2>
79
80 <p>
81 \begin{align}
82 \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &amp; = \frac{4\pi}{c}\vec{\mathbf{j}} \\
83 \nabla \cdot \vec{\mathbf{E}} &amp; = 4 \pi \rho \\
84 \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} &amp; = \vec{\mathbf{0}} \\
85 \nabla \cdot \vec{\mathbf{B}} &amp; = 0
86 \end{align}
87 </p>
88
89 <h2>Inline Mathematics</h2>
90
91 <p>While display equations look good for a page of samples, the
92 ability to mix math and text in a paragraph is also important. This
93 expression \(\sqrt{3x-1}+(1+x)^2\) is an example of an inline equation. As
94 you see, equations can be used this way as well, without unduly
95 disturbing the spacing between lines.</p>
96
97 <h2>References to equations</h2>
98
99 <p>Here is a reference to the Lorenz Equations (\ref{lorenz}). Clicking on the equation number will take you back to the equation.</p>
100
101 </body>
102 </html>