Nafa Book:Help
From Nafa Book
You can add math formulas to your page using <m></m> tags.
Keep in mind that the syntax is different then LaTeX, but is pretty easy to figure out. Feel free to try some out in the Sandbox
Contents |
[edit] Syntax
[edit] Usual Commands
- x+y : <m>x+y </m>
- x-y : <m>x-y </m>
- x*y : <m>x*y </m>
- x/y : <m>x/y </m>
- x^y : <m>x^y </m>
- x_y : <m>x_y </m>
- x<>y : <m>x<>y </m>
- x>y : <m>x>y </m>
- x>=y : <m>x>=y </m>
- x<y : <m>x<y </m>
- x<=y : <m>x<=y </m>
[edit] Parenthesis
- visible : (x)<m>visible (x)</m>
- invisible : {x}<m>invisible {x}</m>
[edit] Math space
- a~b : <m>a~b </m>
[edit] Greek letters
- alpha : <m>alpha </m>
- beta : <m>beta </m>
- gamma : <m>gamma </m>
- delta : <m>delta </m>
- epsilon : <m>epsilon </m>
- varepsilon : <m>varepsilon </m>
- zeta : <m>zeta </m>
- eta : <m>eta </m>
- theta : <m>theta </m>
- vartheta : <m>vartheta </m>
- iota : <m>iota </m>
- kappa : <m>kappa </m>
- lambda : <m>lambda </m>
- mu : <m>mu </m>
- nu : <m>nu </m>
- xi : <m>xi </m>
- pi : <m>pi </m>
- varpi : <m>varpi </m>
- rho : <m>rho </m>
- varrho : <m>varrho </m>
- sigma : <m>sigma </m>
- varsigma : <m>varsigma </m>
- tau : <m>tau </m>
- upsilon : <m>upsilon </m>
- phi : <m>phi </m>
- varphi : <m>varphi </m>
- chi : <m>chi </m>
- psi : <m>psi </m>
- omega : <m>omega </m>
- Gamma : <m>Gamma </m>
- Lambda : <m>Lambda </m>
- Sigma : <m>Sigma </m>
- Psi : <m>Psi </m>
- Delta : <m>Delta </m>
- Xi : <m>Xi </m>
- Upsilon : <m>Upsilon </m>
- Omega : <m>Omega </m>
- Theta : <m>Theta </m>
- Pi : <m>Pi </m>
- Phi : <m>Phi </m>
[edit] Symbols
- infty : <m>infty </m>
- in : <m>in </m>
- notin : <m>notin </m>
- forall : <m>forall </m>
- exists : <m>exists </m>
- notexists : <m>notexists </m>
- partial : <m>partial </m>
- approx : <m>approx </m>
- pm : <m>pm </m>
- inter : <m>inter </m>
- union : <m>union </m>
- ortho : <m>ortho </m>
- parallel : <m>parallel </m>
- backslash : <m>backslash </m>
- prime : <m>prime </m>
- wedge : <m>wedge </m>
- vert : <m>vert </m>
- lbrace : <m>lbrace</m>
- rbrace : <m>rbrace</m>
- circ : <m>circ </m>
- varnothing : <m>varnothing </m>
- subset : <m>subset </m>
- notsubset : <m>notsubset </m>
- cdots : <m>cdots </m>
- vdots : <m>vdots </m>
- ddots : <m>ddots </m>
[edit] Arrows
- left : <m>left </m>
- right : <m>right </m>
- leftright : <m>leftright </m>
- doubleleft : <m>doubleleft </m>
- doubleright : <m>doubleright </m>
- doubleleftright : <m>doubleleftright </m>
- nearrow : <m>nearrow </m>
- searrow : <m>searrow </m>
[edit] Sets
- bbR : <m>bbR </m>
- bbN : <m>bbN </m>
- bbZ : <m>bbZ </m>
- bbC : <m>bbC </m>
[edit] Roots
- sqrt{a} : <m>sqrt{a} </m>
- root{n}{a} : <m>root{n}{a} </m>
[edit] Limits
- lim{a}{x} : <m>lim{a}{x} </m>
[edit] Big operators
- int{a}{b}{x} : <m>int{a}{b}{x} </m>
- doubleint{a}{b}{x} : <m>doubleint{a}{b}{x} </m>
- tripleint{a}{b}{x} : <m>tripleint{a}{b}{x} </m>
- oint{a}{b}{x} : <m>oint{a}{b}{x} </m>
- sum{a}{b}{x} : <m>sum{a}{b}{x} </m>
- prod{a}{b}{x} : <m>prod{a}{b}{x} </m>
- bigcup{a}{b}{x} : <m>bigcup{a}{b}{x} </m>
- bigcap{a}{b}{x} : <m>bigcap{a}{b}{x} </m>
[edit] Delimiters
- delim{[}{x}{]} : <m>delim{[}{x}{]} </m>
- delim{]}{x}{]} : <m>delim{]}{x}{]} </m>
- delim{[}{x}{[} : <m>delim{[}{x}{[} </m>
- delim{]}{x}{[} : <m>delim{]}{x}{[} </m>
- delim{lbrace}{x}{rbrace} : <m>delim{lbrace}{x}{rbrace} </m>
- delim{|}{x}{|} : <m>delim{|}{x}{|} </m>
- delim{vert}{x}{vert} : <m>delim{vert}{x}{vert} </m>
[edit] Matrix
- matrix{num of lines}{num of columns}{first_element ... last_element}
[edit] Example
- matrix{2}{3}{a b c d e f g} : <m>matrix{2}{3}{a b c d e f g} </m>
[edit] Tabular
Tabular
tabular{lines description}{columns description}{first_element ... last_element}
lines description : sequence of 1 (draw the horizontal line) or 0 (don't draw the horizontal line) - the length of the sequence=num of lines+1
columns description : sequence of 1 (draw the vertical line) or 0 (don't draw the vertical line) - the length of the sequence=num of columns+1
[edit] Examples
tabular{111}{1111}{a b c d e f g} : <m>tabular{111}{1111}{a b c d e f g} </m>
tabular{1001}{101}{1 2 3 4 5 6} : <m>tabular{1001}{101}{1 2 3 4 5 6}</m>
[edit] Constructions
- vec{express} : <m>vec{express}</m>
- {express}under{foo} : <m>{express}under{foo</m>
- {express}over{foo} : <m>{express}over{foo}</m>
- overline{express} : <m>overline{express}</m>
- underline{express} : <m>underline{express}</m>
- hat{express} : <m>hat{express}</m>
[edit] Usage Examples
delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= varepsilon/3:<m>delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= varepsilon/3</m>
[edit] About pi
- pi=sum{n=0}{+infty}{{(n!)^2 2^{n+1}}/{(2n+1)!} : <m>pi=sum{n=0}{+infty}{{(n!)^2 2^{n+1}}/{(2n+1)!}}</m>
- pi=22/7-int{0}{1}{{x^4 (1-x)^4}/{1+x^2}dx} : <m>pi=22/7-int{0}{1}{{x^4 (1-x)^4}/{1+x^2}dx}</m>
- pi=3/4 sqrt{3}+24 int{0}{1/4}{sqrt{x-x^2}dx} : <m>pi=3/4 sqrt{3}+24 int{0}{1/4}{sqrt{x-x^2}dx}</m>
- delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{~} : <m>delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{~}</m>
- delim{|}{matrix{3}{3}{a_{1 1} cdots a_{1 n} vdots ddots vdots a_{n 1} cdots a_{n n}}}{|} : <m>delim{|}{matrix{3}{3}{a_{1 1} cdots a_{1 n} vdots ddots vdots a_{n 1} cdots a_{n n}}}{|}</m>