|
|
Line 1: |
Line 1: |
| === Fractions, matrices, multilines === | | === Fractions, matrices, multilines === |
| + | |
| <table class="wikitable"> | | <table class="wikitable"> |
| | | |
Line 7: |
Line 8: |
| <th>How it looks rendered</th> | | <th>How it looks rendered</th> |
| </tr> | | </tr> |
| + | |
| | | |
| <tr> | | <tr> |
Line 14: |
Line 16: |
| </tr> | | </tr> |
| | | |
- | <tr>
| |
- | <td>Small Fractions</td>
| |
- | <td><code>\tfrac{1}{2} = 0.5</code></td>
| |
- | <td><math>\tfrac{1}{2} = 0.5</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td>Large (normal) Fractions</td>
| |
- | <td><code>\dfrac{k}{k-1} = 0.5 \qquad \dfrac{2}{c + \dfrac{2}{d + \dfrac{1}{2}}} = a </code></td>
| |
- | <td><math>\dfrac{k}{k-1} = 0.5 \qquad \dfrac{2}{c + \dfrac{2}{d + \dfrac{1}{2}}} = a</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td>Large (nested) Fractions</td>
| |
- | <td><code>\cfrac{2}{c + \cfrac{2}{d + \cfrac{1}{2}}} = a</code></td>
| |
- | <td><math>\cfrac{2}{c + \cfrac{2}{d + \cfrac{1}{2}}} = a</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td>Binomial coefficients</td>
| |
- | <td><code>\binom{n}{k}</code></td>
| |
- | <td><math>\binom{n}{k}</math></td>
| |
- | </tr>
| |
- |
| |
- |
| |
- | <tr>
| |
- | <td>Small Binomial coefficients</td>
| |
- | <td><code>\tbinom{n}{k}</code></td>
| |
- | <td><math>\tbinom{n}{k}</math></td>
| |
- | </tr>
| |
- |
| |
- |
| |
- | <tr>
| |
- | <td>Large (normal) Binomial coefficients</td>
| |
- | <td><code>\dbinom{n}{k}</code></td>
| |
- | <td><math>\dbinom{n}{k}</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td rowspan="7">Matrices</td>
| |
- | <td><pre>\begin{matrix}
| |
- | x & y \\
| |
- | z & v
| |
- | \end{matrix}</pre></td>
| |
- | <td><math>\begin{matrix} x & y \\ z & v
| |
- | \end{matrix}</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td><pre>\begin{vmatrix}
| |
- | x & y \\
| |
- | z & v
| |
- | \end{vmatrix}</pre></td>
| |
- | <td><math>\begin{vmatrix} x & y \\ z & v
| |
- | \end{vmatrix}</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td><pre>\begin{Vmatrix}
| |
- | x & y \\
| |
- | z & v
| |
- | \end{Vmatrix}</pre></td>
| |
- | <td><math>\begin{Vmatrix} x & y \\ z & v
| |
- | \end{Vmatrix}</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td><pre>\begin{bmatrix}
| |
- | 0 & \cdots & 0 \\
| |
- | \vdots & \ddots & \vdots \\
| |
- | 0 & \cdots & 0
| |
- | \end{bmatrix}</pre></td>
| |
- | <td><math>\begin{bmatrix} 0 & \cdots & 0 \\ \vdots
| |
- | & \ddots & \vdots \\ 0 & \cdots &
| |
- | 0\end{bmatrix} </math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td><pre>\begin{Bmatrix}
| |
- | x & y \\
| |
- | z & v
| |
- | \end{Bmatrix}</pre></td>
| |
- | <td><math>\begin{Bmatrix} x & y \\ z & v
| |
- | \end{Bmatrix}</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td><pre>\begin{pmatrix}
| |
- | x & y \\
| |
- | z & v
| |
- | \end{pmatrix}</pre></td>
| |
- | <td><math>\begin{pmatrix} x & y \\ z & v
| |
- | \end{pmatrix}</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td><pre>
| |
- | \bigl( \begin{smallmatrix}
| |
- | a&b\\ c&d
| |
- | \end{smallmatrix} \bigr)
| |
- | </pre></td>
| |
- | <td><math>
| |
- | \bigl( \begin{smallmatrix}
| |
- | a&b\\ c&d
| |
- | \end{smallmatrix} \bigr)
| |
- | </math></td>
| |
- | </tr>
| |
- |
| |
- |
| |
- |
| |
- | <tr>
| |
- | <td>Case distinctions</td>
| |
- | <td><pre>
| |
- | f(n) =
| |
- | \begin{cases}
| |
- | n/2, & \mbox{if }n\mbox{ is even} \\
| |
- | 3n+1, & \mbox{if }n\mbox{ is odd}
| |
- | \end{cases}</pre></td>
| |
- | <td><math>f(n) =
| |
- | \begin{cases}
| |
- | n/2, & \mbox{if }n\mbox{ is even} \\
| |
- | 3n+1, & \mbox{if }n\mbox{ is odd}
| |
- | \end{cases} </math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td rowspan="2">Multiline equations</td>
| |
- | <td><pre>
| |
- | \begin{align}
| |
- | f(x) & = (a+b)^2 \\
| |
- | & = a^2+2ab+b^2 \\
| |
- | \end{align}
| |
- | </pre></td>
| |
- | <td><math>
| |
- | \begin{align}
| |
- | f(x) & = (a+b)^2 \\
| |
- | & = a^2+2ab+b^2 \\
| |
- | \end{align}
| |
- | </math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td><pre>
| |
- | \begin{alignat}{2}
| |
- | f(x) & = (a-b)^2 \\
| |
- | & = a^2-2ab+b^2 \\
| |
- | \end{alignat}
| |
- | </pre></td>
| |
- | <td><math>
| |
- | \begin{alignat}{2}
| |
- | f(x) & = (a-b)^2 \\
| |
- | & = a^2-2ab+b^2 \\
| |
- | \end{alignat}
| |
- | </math></td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td>Multiline equations <small>(must define number of colums used ({lcr}) <small>(should not be used unless needed)</small></small></td>
| |
- | <td><pre>
| |
- | \begin{array}{lcl}
| |
- | z & = & a \\
| |
- | f(x,y,z) & = & x + y + z
| |
- | \end{array}</pre></td>
| |
- | <td><math>\begin{array}{lcl}
| |
- | z & = & a \\
| |
- | f(x,y,z) & = & x + y + z
| |
- | \end{array}</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td>Multiline equations (more)</td>
| |
- | <td><pre>
| |
- | \begin{array}{lcr}
| |
- | z & = & a \\
| |
- | f(x,y,z) & = & x + y + z
| |
- | \end{array}</pre></td>
| |
- | <td><math>\begin{array}{lcr}
| |
- | z & = & a \\
| |
- | f(x,y,z) & = & x + y + z
| |
- | \end{array}</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td>Breaking up a long expression so that it wraps when necessary.</td>
| |
- | <td><pre>
| |
- | <nowiki>
| |
- | <math>f(x) \,\!</math>
| |
- | <math>= \sum_{n=0}^\infty a_n x^n </math></nowiki></pre>
| |
- | <pre><nowiki><math>= a_0+a_1x+a_2x^2+\cdots</math>
| |
- | </nowiki>
| |
- | </pre>
| |
- | </td>
| |
- | <td>
| |
- | <math>f(x) \,\!</math> <math>= \sum_{n=0}^\infty a_n x^n </math> <math>= a_0 +a_1x+a_2x^2+\cdots</math>
| |
- | </td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td>Simultaneous equations</td>
| |
- | <td><pre>\begin{cases}
| |
- | 3x + 5y + z \\
| |
- | 7x - 2y + 4z \\
| |
- | -6x + 3y + 2z
| |
- | \end{cases}</pre></td>
| |
- | <td><math>\begin{cases} 3x + 5y + z \\ 7x - 2y + 4z \\ -6x + 3y + 2z \end{cases}</math></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td>Arrays</td>
| |
- | <td><pre>
| |
- | \begin{array}{|c|c||c|} a & b & S \\
| |
- | \hline
| |
- | 0&0&1\\
| |
- | 0&1&1\\
| |
- | 1&0&1\\
| |
- | 1&1&0\\
| |
- | \end{array}
| |
- | </pre></td>
| |
- | <td><math>
| |
- | \begin{array}{|c|c||c|} a & b & S \\
| |
- | \hline
| |
- | 0&0&1\\
| |
- | 0&1&1\\
| |
- | 1&0&1\\
| |
- | 1&1&0\\
| |
- | \end{array}
| |
- | </math></td>
| |
- | </tr>
| |
| </table> | | </table> |
- |
| |
- |
| |
- |
| |
| | | |
| | | |