HandWiki:Help/Equations

From HandWiki


Showing Equations

MediaWiki uses a subset of TeX markup for mathematical equations. As for Wikipedia, one can use the standard "math" tag. See Displaying a formula in Mediawiki. Howerver, HandWiki uses MathJax for rendering which is included in the extension SimpleMathJax. This reduces the load on the HandWiki server since equations are parsed by the web browsers.

You can find more extensive discussion on HandWiki specific rendering using math equation help.

Inline equations

Inline formulas can be inserted in the line where the actual text is. Here is an inline formula i=02i. This sentence with this inline formulae can be created as shown below:

Here is an inline formula <math>\sum_{i=0}^\infty 2^{-i}</math>

One can also use LaTeX style, in which case the MathJax will be used.

Here is an inline formula $F_2=\sum^2_{i=0} = 10$

which will create the formula $F_2=\sum^2_{i=0} = 10$

Here is the example of the text: The Fibonacci sequence is defined by $F _ { 1 } = F _ { 2 } = 1$ and $F _ { n } = F _ { n - 1} + F _ { n - 2}$ for $n > 2$. The precise sequence used in the Zeckendorf theorem and representation is the Fibonacci sequence with $F _ { 1 }$ deleted. Then here is the main equation:

$$V(\mathfrak l) = \{{\mathfrak p}\in {\rm Spec A} \mid {\mathfrak p} \supset {\mathfrak l}\},$$

or \begin{equation*} X ^ { \prime \prime } ( t ) + \mathcal{R} ( t ) \circ X ( t ) = 0 \end{equation*}


This is how it is programmed:

The Fibonacci sequence is defined by $F _ { 1 } = F _ { 2 } = 1$ and $F _ { n } = F _ { n - 1} + F _ { n  - 2}$ for $n &gt; 2$. The precise sequence used in the Zeckendorf theorem and representation is the Fibonacci sequence with $F _ { 1 }$ deleted.
Then here is the main equation:

$$V(\mathfrak l) = \{{\mathfrak p}\in {\rm Spec A} \mid {\mathfrak p} \supset {\mathfrak l}\},$$

or

\begin{equation*} X ^ { \prime \prime } ( t ) + \mathcal{R} ( t ) \circ X ( t ) = 0 \end{equation*}

Block equations

Block equations are a special case. They are:

  • Positioned on a separate line
  • Enumerated using numbers in ()
  • Can be referenced inside a text

Here is a simple example without numerating the formula:

geometric series:i=02i=2

It is coded like this:

:<math>\text{geometric series:}\quad \sum_{i=0}^\infty 2^{-i}=2 </math>

As you can see, it should be positioned on a new line. For a better style, add a left margin space using ":" when showing a formula. This adds an extra space on the left of the formula

Additional latex symbols

Similar to Wikipedia, HandWiki supports bold symbols using the capital letter R, T, P etc., which are shortcuts for the LaTeX mathbb keyword. The are from begingroup and mediawiki-texvc TeX extensions