Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:formulas [2019/03/31 00:44] – [Formulas] ttzhouwiki:formulas [2019/06/03 01:12] (current) – external edit 127.0.0.1
Line 6: Line 6:
  
  
-===== Typical commands =====+===== Inline formulas =====
  
-''%%<m>x+y</m>%%''   | <m>x+y</m>   | +Simply place LaTex codes in ''%%<m> ...... </m>%%'' or ''%%\%%( ...... %%\%%)'' to render inline formulas.
-''%%<m>x-y</m>%%''   | <m>x-y</m>   | +
-| ''%%<m>x*y</m>%%''   | <m>x*y</m>   | +
-| ''%%<m>x/y</m>%%''   | <m>x/y</m>   | +
-| ''%%<m>x^y</m>%%''   | <m>x^y</m>   | +
-| ''%%<m>x_y</m>%%''   | <m>x_y</m>   | +
-| ''%%<m>x<>y</m>%%''  | <m>x<>y</m> +
-| ''%%<m>x>y</m>%%''   | <m>x>y</m>   | +
-| ''%%<m>x>=y</m>%%''  | <m>x>=y</m> +
-| ''%%<m>x<y</m>%%''   | <m>x<y</m>   | +
-| ''%%<m>x<=y</m>%%''  | <m>x<=y</m>  |+
  
-===== Parenthesis =====+<alert info>Use [[https://www.codecogs.com/latex/eqneditor.php|LaTeX Equation maker]] if you don't know how to write Latex codes.</alert>
  
-^ Code ^ Output ^ Description ^ +For example,
-| ''%%<m>(x+y)</m>%%''  | <m>(x+y)</m>  | Visible | +
-| ''%%<m>{x+y}</m>%%''  | <m>{x+y}</m>  | Invisible |+
  
-===== Space ===== +<code> 
-^ Code                ^ Output      ^ Description  +\(E=MC^2\), equation in German-born physicist Albert Einstein’s theory of special relativity ...... 
-| ''%%<m>a~b</m>%%'' <m>a~b</m | Space        |+</code> 
 +or 
 +<code> 
 +<m>E=MC^2</m>, equation in German-born physicist Albert Einstein’s theory of special relativity ...... 
 +</code>
  
-===== Greeks ===== +The above will be rendered as:
-^ Code                       ^ Output             ^ Description +
-| ''%%<m>alpha</m>%%''       | <m>alpha</m>       | Alpha        | +
-| ''%%<m>beta</m>%%''        | <m>beta</m>        | Beta         | +
-| ''%%<m>gamma</m>%%''       | <m>gamma</m>       | Gamma        | +
-| ''%%<m>delta</m>%%''       | <m>delta</m>       | Delta        | +
-| ''%%<m>epsilon</m>%%''     | <m>epsilon</m>     | Epsilon      | +
-| ''%%<m>varepsilon</m>%%''  | <m>varepsilon</m>  | Epsilon   | +
-| ''%%<m>zeta</m>%%''        | <m>zeta</m>        | Zeta         | +
-| ''%%<m>eta</m>%%''         | <m>eta</m>         | Eta          | +
-| ''%%<m>theta</m>%%''       | <m>theta</m>       | Theta        | +
-| ''%%<m>vartheta</m>%%''    | <m>vartheta</m>    | Theta     | +
-| ''%%<m>iota</m>%%''        | <m>iota</m>        | Iota         | +
-| ''%%<m>kappa</m>%%''       | <m>kappa</m>       | Kappa        | +
-| ''%%<m>lambda</m>%%''      | <m>lambda</m>      | Lambda       | +
-| ''%%<m>mu</m>%%''          | <m>mu</m>          | Mu           | +
-| ''%%<m>nu</m>%%''          | <m>nu</m>          | Nu           | +
-| ''%%<m>xi</m>%%''          | <m>xi</m>          | Xi           | +
-| ''%%<m>pi</m>%%''          | <m>pi</m>          | Pi           | +
-| ''%%<m>varpi</m>%%''       | <m>varpi</m>       | Varpi        | +
-| ''%%<m>rho</m>%%''         | <m>rho</m>         | Rho          | +
-| ''%%<m>varrho</m>%%''      | <m>varrho</m>      | Rho       | +
-| ''%%<m>sigma</m>%%''       | <m>sigma</m>       | Sigma        | +
-| ''%%<m>varsigma</m>%%''    | <m>varsigma</m>    | Sigma     | +
-| ''%%<m>tau</m>%%''         | <m>tau</m>         | Tau          | +
-| ''%%<m>upsilon</m>%%''     | <m>upsilon</m>     | Upsilon      | +
-| ''%%<m>phi</m>%%''         | <m>phi</m>         | Phi          | +
-| ''%%<m>varphi</m>%%''      | <m>varphi</m>      | Phi       | +
-| ''%%<m>chi</m>%%''         | <m>chi</m>         | Chi          | +
-| ''%%<m>psi</m>%%''         | <m>psi</m>         | Psi          | +
-| ''%%<m>omega</m>%%''       | <m>omega</m>       | Omega        | +
-| ''%%<m>Gamma</m>%%''       | <m>Gamma</m>       | Gamma        | +
-| ''%%<m>Lambda</m>%%''      | <m>Lambda</m>      | Lambda       | +
-| ''%%<m>Sigma</m>%%''       | <m>Sigma</m>       | Sigma        | +
-| ''%%<m>Psi</m>%%''         | <m>Psi</m>         | Psi          | +
-| ''%%<m>Delta</m>%%''       | <m>Delta</m>       | Delta        | +
-| ''%%<m>Xi</m>%%''          | <m>Xi</m>          | Xi           | +
-| ''%%<m>Upsilon</m>%%''     | <m>Upsilon</m>     | Upsilon      | +
-| ''%%<m>Omega</m>%%''       | <m>Omega</m>       | Omega        | +
-| ''%%<m>Theta</m>%%''       | <m>Theta</m>       | Theta        | +
-| ''%%<m>Pi</m>%%''          | <m>Pi</m>          | Pi           | +
-| ''%%<m>Phi</m>%%''         | <m>Phi</m>         | Phi          |+
  
-===== Symbols ===== +<m>E=MC^2</m>, equation in German-born physicist Albert Einstein’s theory of special relativity ......
-^ Code                       ^ Output             ^ Description +
-| ''%%<m>infty</m>%%''       | <m>infty</m>       | Infty        | +
-| ''%%<m>in</m>%%''          | <m>in</m>          | In           | +
-| ''%%<m>notin</m>%%''       | <m>notin</m>       | Notin        | +
-| ''%%<m>forall</m>%%''      | <m>forall</m>      | Forall       | +
-| ''%%<m>exists</m>%%''      | <m>exists</m>      | Exists       | +
-| ''%%<m>notexists</m>%%''   | <m>notexists</m>   | Not exists   | +
-| ''%%<m>partial</m>%%''     | <m>partial</m>     | Partial      | +
-| ''%%<m>approx</m>%%''      | <m>approx</m>      | Approx       | +
-| ''%%<m>pm</m>%%''          | <m>pm</m>          | Pm           | +
-| ''%%<m>inter</m>%%''       | <m>inter</m>       | Inter        | +
-| ''%%<m>union</m>%%''       | <m>union</m>       | Union        | +
-| ''%%<m>ortho</m>%%''       | <m>ortho</m>       | Ortho        | +
-| ''%%<m>parallel</m>%%''    | <m>parallel</m>    | Parallel     | +
-| ''%%<m>backslash</m>%%''   | <m>backslash</m>   | Backslash    | +
-| ''%%<m>prime</m>%%''       | <m>prime</m>       | Prime        | +
-| ''%%<m>wedge</m>%%''       | <m>wedge</m>       | Wedge        | +
-| ''%%<m>vert</m>%%''        | <m>vert</m>        | Vert         | +
-| ''%%<m>lbrace</m>%%''      | <m>{</m>           | Lbrace       | +
-| ''%%<m>rbrace</m>%%''      | <m>}</m>           | Rbrace       | +
-| ''%%<m>circ</m>%%''        | <m>circ</m>        | Circ         | +
-| ''%%<m>varnothing</m>%%''  | <m>varnothing</m>  | Varnothing   | +
-| ''%%<m>subset</m>%%''      | <m>subset</m>      | Subset       | +
-| ''%%<m>notsubset</m>%%''   | <m>notsubset</m>   | Notsubset    | +
-| ''%%<m>cdots</m>%%''       | <m>cdots</m>       | Cdots        | +
-| ''%%<m>vdots</m>%%''       | <m>vdots</m>       | Vdots        | +
-| ''%%<m>ddots</m>%%''       | <m>ddots</m>       | Ddots        |+
  
-===== Arrows ===== +===== Display Math ===== 
-^ Code                            ^ Output                  ^ Description        ^ +Wrap LaTex codes in ''%%<math...... </math>%%'' or ''%%\%%[ ...... %%\%%]'' to display math formulas on its own line: 
-''%%<m>left</m>%%''             | <m>left</m>             | Left               | +<alert info>Use [[https://www.codecogs.com/latex/eqneditor.php|LaTeX Equation maker]] if you don't know how to write Latex codes.</alert>
-''%%<m>right</m>%%''            | <m>right</m>            | Right              | +
-| ''%%<m>leftright</m>%%''        | <m>leftright</m>        | Left right         | +
-| ''%%<m>doubleleft</m>%%''       | <m>doubleleft</m>       | Double left        | +
-| ''%%<m>doubleright</m>%%''      | <m>doubleright</m>      | Double right       | +
-| ''%%<m>doubleleftright</m>%%''  | <m>doubleleftright</m>  | Double left right  | +
-| ''%%<m>nearrow</m>%%''          | <m>nearrow</m>          | Ne arrow           | +
-| ''%%<m>searrow</m>%%''          | <m>searrow</m>          | Se arrow           |+
  
-===== Sets ===== +<code> 
-^ Code                ^ Output      ^ +\[ \sin A \cos B \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] \] 
-| ''%%<m>bbR</m>%%''  | <m>bbR</m>  | +</code
-| ''%%<m>bbN</m>%%''  | <m>bbN</m>  | +or 
-| ''%%<m>bbZ</m>%%''  | <m>bbZ</m>  | +<code
-| ''%%<m>bbC</m>%%''  | <m>bbC</m |+<math\sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] </math
 +</code>
  
-===== Roots and limits ===== +The above will be rendered as:
-^ Code                       ^ Output             ^ +
-| ''%%<m>sqrt{a}</m>%%''     | <m>sqrt{a}</m>     | +
-| ''%%<m>root{n}{a}</m>%%''  | <m>root{n}{a}</m> +
-| ''%%<m>lim{a}{x}</m>%%''   | <m>lim{a}{x}</m>   |+
  
-===== Big operators ====== +<math\sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] </math>
-^ Code                               ^ Output                     ^ +
-| ''%%<m>int{a}{b}{x}</m>%%''        | <m>int{a}{b}{x}</m>        | +
-| ''%%<m>doubleint{a}{b}{x}</m>%%''  | <m>doubleint{a}{b}{x}</m> +
-| ''%%<m>tripleint{a}{b}{x}</m>%%''  | <m>tripleint{a}{b}{x}</m> +
-| ''%%<m>oint{a}{b}{x}</m>%%''       | <m>oint{a}{b}{x}</m>       | +
-| ''%%<m>sum{a}{b}{x}</m>%%''        | <m>sum{a}{b}{x}</m>        | +
-| ''%%<m>prod{a}{b}{x}</m>%%''       | <m>prod{a}{b}{x}</m>       | +
-| ''%%<m>bigcup{a}{b}{x}</m>%%''     | <m>bigcup{a}{b}{x}</m>     | +
-| ''%%<m>bigcap{a}{b}{x}</m>%%''     | <m>bigcap{a}{b}{x}</m    |+
  
-===== Delimiters ===== +A wide range of math environments will work as well: 
-^ Code                                     ^ Output                           ^ + 
-| ''%%<m>delim{[}{x}{]}</m>%%''            | <m>delim{[}{x}{]}</m>            | +<code> 
-| ''%%<m>delim{]}{x}{]}</m>%%''            | <m>delim{]}{x}{]}</m>            | +\begin{align*} 
-| ''%%<m>delim{[}{x}{[}</m>%%''            | <m>delim{[}{x}{[}</m           | +e^& = 1 + + \frac{x^2}{2+ \frac{x^3}{6+ \cdots \\ 
-| ''%%<m>delim{]}{x}{[}</m>%%''            | <m>delim{]}{x}{[}</m>            | +    & = \sum_{n\geq 0\frac{x^n}{n!} 
-| ''%%<m>delim{lbrace}{x}{rbrace}</m>%%''  | <m>delim{lbrace}{x}{rbrace}</m>  | +\end{align*} 
-| ''%%<m>delim{|}{x}{|}</m>%%''            | <m>delim{|}{x}{|}</m>            | +</code
-| ''%%<m>delim{vert}{x}{vert}</m>%%''      | <m>delim{vert}{x}{vert}</m>      |+ 
 +\begin{align*} 
 +e^& = 1 + + \frac{x^2}{2+ \frac{x^3}{6+ \cdots \\ 
 +    & = \sum_{n\geq 0\frac{x^n}{n!
 +\end{align*}
  
-===== Constructions ===== 
-^ Code                                ^ Output                      ^ 
-| ''%%<m>vec{express}</m>%%''         | <m>vec{express}</m>         | 
-| ''%%<m>{express}under{foo}</m>%%''  | <m>{express}under{foo}</m>  | 
-| ''%%<m>{express}over{foo}</m>%%''   | <m>{express}over{foo}</m>   | 
-| ''%%<m>overline{express}</m>%%''    | <m>overline{express}</m>    | 
-| ''%%<m>underline{express}</m>%%''   | <m>underline{express}</m>   | 
-| ''%%<m>hat{express}</m>%%''         | <m>hat{express}</m>         |