Help:Math Help part 4: Difference between revisions

From Amateur Radio Wiki
Jump to navigation Jump to search
(added info as per list)
 
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Please note: Math is not completely enabled yet : some script error? ==
'''Please note that non standard characters will probably not render properly'''


The complete helpfile is over 50kB in size.  Some browsers may have difficulty in rendering the page, because many have a notional upper limit of 32kB per page.  Please choose from one of the following options to access the help file:
The complete helpfile is over 50kB in size.  Some browsers may have difficulty in rendering the page, because many have a notional upper limit of 32kB per page.  Please choose from one of the following options to access the help file:
== Related Math Help pages ==


* [[Complete math help file]] - over 50kB in size
* [[Complete math help file]] - over 50kB in size
Line 40: Line 42:
</tr>
</tr>


<tr>
<td>Small Fractions</td>
<td><code>\tfrac{2}{4} = 0.5</code></td>
<td><math>\tfrac{2}{4} = 0.5</math></td>
</tr>
<tr>
<td>Large (normal) Fractions</td>
<td><code>\dfrac{2}{4} = 0.5</code></td>
<td><math>\dfrac{2}{4} = 0.5</math></td>
</tr>


<tr>
<tr>
Line 56: Line 47:
<td><code>\cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a</code></td>
<td><code>\cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a</code></td>
<td><math>\cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a</math></td>
<td><math>\cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = 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>


<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>
<tr>
Line 134: Line 106:
\end{pmatrix}</math></td>
\end{pmatrix}</math></td>
</tr>
</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>
<tr>
Line 163: Line 120:
   3n+1, & \mbox{if }n\mbox{ is odd}  
   3n+1, & \mbox{if }n\mbox{ is odd}  
\end{cases} </math></td>
\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>



Latest revision as of 16:30, 8 April 2009

Please note that non standard characters will probably not render properly

The complete helpfile is over 50kB in size. Some browsers may have difficulty in rendering the page, because many have a notional upper limit of 32kB per page. Please choose from one of the following options to access the help file:

Related Math Help pages

  • Math Help part 1 - contains information on Syntax, Rendering and Pros and Cons of TeX and HTML for math functions
  • Math Help part 2 - contains information on Functions, Symbols and Special characters
  • Math Help part 3 - contains information on Subscripts, Superscripts and Integrals
  • Math Help part 6 - contains information on Parenthesising big exprssions, Brackets and Bars
  • Math Help part 7 - contains information about Spacing, Aligning with normal text flow,Forced PNG rendering, Color and examples.

This wiki uses a subset of TeX markup, including some extensions from LaTeX and AMS-LaTeX, for mathematical formulae. It generates either PNG images or simple HTML markup, depending on user preferences and the complexity of the expression. In the future, as more browsers are smarter, it will be able to generate enhanced HTML or even MathML in many cases.

More precisely, MediaWiki filters the markup through Texvc, which in turn passes the commands to TeX for the actual rendering. Thus, only a limited part of the full TeX language is supported; see below for details.


Fractions, matrices, multilines

Feature Syntax How it looks rendered
Fractions \frac{2}{4}=0.5 <math>\frac{2}{4}=0.5</math>
Large (nestled) Fractions \cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a <math>\cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a</math>
Matrices
\begin{matrix}
  x & y \\
  z & v 
\end{matrix}
<math>\begin{matrix} x & y \\ z & v \end{matrix}</math>
\begin{vmatrix}
  x & y \\
  z & v 
\end{vmatrix}
<math>\begin{vmatrix} x & y \\ z & v \end{vmatrix}</math>
\begin{Vmatrix}
  x & y \\
  z & v
\end{Vmatrix}
<math>\begin{Vmatrix} x & y \\ z & v \end{Vmatrix}</math>
\begin{bmatrix}
  0      & \cdots & 0      \\
  \vdots & \ddots & \vdots \\ 
  0      & \cdots & 0
\end{bmatrix}
<math>\begin{bmatrix} 0 & \cdots & 0 \\ \vdots

& \ddots & \vdots \\ 0 & \cdots &

0\end{bmatrix} </math>
\begin{Bmatrix}
  x & y \\
  z & v
\end{Bmatrix}
<math>\begin{Bmatrix} x & y \\ z & v \end{Bmatrix}</math>
\begin{pmatrix}
  x & y \\
  z & v 
\end{pmatrix}
<math>\begin{pmatrix} x & y \\ z & v \end{pmatrix}</math>
Case distinctions
f(n) = 
\begin{cases} 
  n/2,  & \mbox{if }n\mbox{ is even} \\
  3n+1, & \mbox{if }n\mbox{ is odd} 
\end{cases}
<math>f(n) =

\begin{cases}

 n/2,  & \mbox{if }n\mbox{ is even} \\ 
 3n+1, & \mbox{if }n\mbox{ is odd} 
\end{cases} </math>
Breaking up a long expression so that it wraps when necessary

<math>f(x) \,\!</math>
<math>= \sum_{n=0}^\infty a_n x^n </math>
<math>= a_0+a_1x+a_2x^2+\cdots</math>

<math>f(x) \,\!</math><math>= \sum_{n=0}^\infty a_n x^n </math><math>= a_0 +a_1x+a_2x^2+\cdots</math>

Simultaneous equations
\begin{cases}
    3x + 5y +  z \\
    7x - 2y + 4z \\
   -6x + 3y + 2z 
\end{cases}
<math>\begin{cases} 3x + 5y + z \\ 7x - 2y + 4z \\ -6x + 3y + 2z \end{cases}</math>