Help:Math
From Thinkmath
To use mathematical typesetting, begin mathematical expressions with <math> and end with </math>.
Superscripts (exponents) and subscripts are indicated just using the caret (shift 6, ^) or underscore, followed by the super/subscript. Curly-braces {} indicate "scope," so if one needs more than a single character (e.g., for a two-digit number or an expression as exponent or subscript), use {}. Most other mathematical symbols all begin with the "backslash" character (\) and most have relatively memorable names, like \frac \times \div \sum \geq \leq .
Examples
To get, type
<math>4 \times \frac {11} {12} = \frac {44} {12} = 3 \frac 8 {12} = 3 \frac 2 3</math>
To get, type
<math>12 \div 4 > 2.5 \geq x</math>
To get, type
<math>\overline{AB} \perp \overline{CD}</math>Note the use of {} to surround AB.
To get f(x) = ax2 + bx + c, type<math>f(x)=a x^2 + b x + c</math>Note that the coefficient is followed by a space.
Leaving extra space between lines containing mathematical expressions
Mathematical expressions usually use a different font and size from the normal font of your browser. Sometimes extra lines between expressions are important for clarity. In the following examples, note the use of "breakline" (<br>) followed by space and another <br> to leave an extra line between expressions.
Wiki markup
<math> \sum_{k=1}^{n}{k} = \frac {n(n+1)} 2 </math>
Note the use of {} to show that n(n+1) is ''all'' in the numerator. <br> <br>
<math> \int_{\theta=0}^{\pi}{\sin \theta} </math>
All Greek letters are just named. Note use of underscore.
What it looks like in your browser
Note the use of {} to show that n(n+1) is all in the numerator.
All Greek letters are just named. Note use of underscore.
Back to learning about editing
A more elaborate example
The following example -- mathematically utterly meaningless -- shows how to create annotated computations. The typesetting (not content) is borrowed from Wikipedia's nice article on casting out nines.
|
|
| A five digit number, an arrow, and some notations.‡ |
|
|
| More stuff.** |
|
| We need two rows of arrow on one side. | |
| But only one row of arrow on the other. | ||
|
|
| Final comment.†† |
‡ This line has no meaning.
** This line has even less meaning.
†† And so the conclusion cannot mean much!
, type
, type
, type
Note the use of {} to show that n(n+1) is all in the numerator.
All Greek letters are just named. Note use of underscore.
