MediaWiki User Guide/Mathematics
You can enter mathematical formulas into a wiki, using a math
tag, such as:
<math>\sqrt{2}</math>
The formulas are marked up in the TeX markup, the markup of a complex typesetting system specialized on mathematics.
Before you start writing formulas in this markup, you can consider writing the simpler ones in HTML and wiki markup, such as:
- f(x) = b + c / d
which is marked up as
''f''(x) = ''b'' + ''c'' / ''d''
Examples
editTo get started, follow the examples below.
No. | Desired Effect | Markup |
---|---|---|
1. | <math>\alpha</math>
| |
2. | <math>\sqrt{2}</math>
| |
3. | <math>\sqrt{1-e^2}</math>
| |
4. | <math>\frac{2}{4}=0.5</math>
| |
5. | <math>\sum_{k=1}^N k^2</math>
| |
6. | <math>\int\limits_{1}^{3}\frac{e^3/x}{x^2}\, dx</math>
| |
7. | <math>\begin{bmatrix}
0 & \cdots & 0 \\
\vdots & \ddots & \vdots \\
0 & \cdots & 0
\end{bmatrix}</math>
| |
8. | <math>\begin{pmatrix}
x & y \\
z & v
\end{pmatrix}</math>
|
Greek and symbols
editThere is a way of marking up Greek characters and special symbols, as the following table shows.
Desired Effect | Markup |
---|---|
α β γ δ ε ζ |
α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Φ Ψ Ω |
∫ ∑ ∏ √ − ± ∞ ≈ ∝ = ≡ ≠ ≤ ≥ × · ÷ ∂ ′ ″ ∇ ‰ ° ∴ Ø ø ∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇ ¬ ∧ ∨ ∃ ∀ ⇒ ⇔ → ↔ ↑ ℵ - – — |
∫ ∑ ∏ √ − ± ∞ ≈ ∝ {{=}} ≡ ≠ ≤ ≥ × · ÷ ∂ ′ ″ ∇ ‰ ° ∴ ø ø ∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇ ¬ ∧ ∨ ∃ ∀ ⇒ ⇔ → ↔ ↑ ℵ - – — |