Did you know that the OpenOffice.org Wiki has a WYSIWYG editor? See Help:FCKeditor

Math commands - Reference

From OpenOffice.org Wiki

Jump to: navigation, search


Contents

Unary / binary operators

Operation Command Display
Positive (plus) +1 +1
Negative (minus)-1−1
Plus/minus+-1\pm 1
Minus/plus-+1\mp 1
Boolean 'not'neg a¬a
Additiona + ba+b
Dot producta cdot ba·b
Cross producta times ba×b
Multiplication (asterisk)a * ba * b
Boolean 'and'a and bab
Subtractiona - ba−b
Division (as a fraction)a over b\frac{a}{b}
Division (as an operator)  a div ba÷b
Division (with a slash)a / ba/b
Boolean 'or'a or ba \or b
Concatenationa circ b a \circ b

Relational operators

Operation Command Display
Is equala = ba=b
Is not equala <> ba≠b
Approximatelya approx 2a≈b
Dividesa divides ba \mid b
Does not dividea ndivides ba \! \nmid \! b
Less thana < 2a<2
Greater thana > 2a>2
Similar to or equala simeq ba\! \simeq\! b
Parallela parallel ba \!\parallel\! b
Orthogonal toa ortho ba \!\perp\! b
Less than or equal toa leslant ba \!\leqslant\! b
Greater than or equal toa geslant ba \!\geqslant\! b
Similar toa sim ba\!\sim\! b\,\!
Congruenta equiv ba≡b
Less than or equal toa <= ba≤b
Greater than or equal toa >= ba≥b
Proportionala prop ba\! \propto\! b
Towarda toward ba→b
Arrow lefta dlarrow ba⇐b
Double arrow left and right  a dlrarrow ba⇔b
Arrow righta drarrow ba⇒b

Set operations

Operation Command Display
Is ina in Ba∈B
Is not ina notin Ba∉B
OwnsA owns bA\!\ni\! b
Empty setemptyset\emptyset
IntersectionA intersection BA∩B
UnionA union BA∪B
DifferenceA setminus BA\!\setminus\! B
QuotientA slash BA\!/\! B
Alephaleph
SubsetA subset BA⊂B
Subset or equal toA subseteq BA⊆B
SupersetA supset BA⊃B
Superset or equal toA supseteq BA⊇B
Not subsetA nsubset BA / B
Not subset or equalA nsubseteq BA / B
Not supersetA nsupset BA / B
Not superset or equalA nsupseteq BA / B
Set of natural numberssetN\mathbb{N}
Set of integerssetZ\mathbb{Z}
Set of rational numberssetQ\mathbb{Q}
Set of real numberssetR\mathbb{R}
Set of complex numberssetC\mathbb{C}

Functions

Operation Command Display
Exponentialfunc e^{a}\operatorname{e}^a
Natural logarithmln(a)ln(a)
Exponential functionexp(a)exp(a)
Logarithmlog(a)log(a)
Powera^{b}a^b\,\!
Sinesin(a)sin(a)
Cosinecos(a)cos(a)
Tangenttan(a)tan(a)
Cotangentcot(a)cot(a)
Square rootsqrt{a}\sqrt{a}
Arcsinearcsin(a)arcsin(a)
Arccosinearccos(a)arccos(a)
Arctangentarctan(a)arctan(a)
Arc cotangentarccot(a)arccot(a)
nth rootnroot{a}{b}\sqrt[a]{b}
Hyperbolic sinesinh(a)sinh(a)
Hyperbolic cosinecosh(a)cosh(a)
Hyperbolic tangenttanh(a)tanh(a)
Hyperbolic cotangentcoth(a)coth(a)
Absolute valueabs{a}|\,a\,|
Arc hyperbolic sinearsinh(a)\operatorname{arsinh}(a)
Arc hyperbolic cosinearccosh(a)\operatorname{arcosh}(a)
Arc hyperbolic tangentarctanh(a)\operatorname{artanh}(a)
Arc hyperbolic cotangentarccoth(a)\operatorname{arcoth}(a)
Factorialfact{a}a!\!\,

Operators

All operators can be used with the limit functions (“from" and “to").

Operation Command Display
Limitlim{a}\lim{a}
Sumsum{a}\sum{a}
Productprod{a}\prod{a}
Coproductcoprod{a}\coprod{a}
Upper and lower bounds shown with integralint from {r_0} to {r_t} a\int_{r_0}^{r_t}{a}
Integralint{a}\int{a}
Double integraliint{a}\iint{a}
Triple integraliiint{a}\iiint{a}
Lower bound shown with summation symbolsum from{3}b\sum_3{b}\,\!
Contour integrallint a\oint{a}
Double curved integralllint aImage:Math_l2inta.png
Triple curved integrallllint aImage:Math_l3inta.png
Product with rangeprod from {i=1} to {n} {(i+1)}\prod_{i=1}^{n}{(i+1)}

Attributes

Operation Command Display
Acute accentacute aá
Grave accentgrave aà
Reverse circumflexcheck a\check{a}
Brevebreve a\breve{a}
Circlecircle aå
Vector arrowvec a\vec{a}
Tildetilde aã
Circumflexhat aâ
Line abovebar a\bar{a}
Dotdot a\dot{a}
Wide vector arrowwidevec abc\overrightarrow{a b c}
Wide tildewidetilde abc
Wide circumflexwidehat abc\widehat{abc}
Double dotddot a\ddot{a}
Line overoverline abc\overline{abc}
Line underunderline abc\underline{abc}
Line throughoverstrike abcabc
Triple dotdddot aImage:Math_3dota.png
Transparent (useful to get a placeholder of a given size)phantom a
Bold fontbold a\bold{a}
Italic font (see Note 1)ital “a"\mathit{a}\,\!
Resize fontsize 16 qvqv
Following item in sans serif font (see Note 2)font sans qvqv
Following item in serif fontfont serif qvqv
Following item in fixed fontfont fixed qvqv
Make color of following text cyan (see Note 3)color cyan qv\color{Cyan}qv
Make color of following text yellowcolor yellow qv\color{Yellow}qv
Make color of following text whitecolor white qv\color{White}qv
Make color of following text greencolor green qv\color{Green}qv
Make color of following text bluecolor blue qv\color{Blue}qv
Make color of following text redcolor red qv\color{Red}qv
Make color green returns to default color blackcolor green X qv{\color{Green}{X}} \ qv
Brace items to change color of more than one itemcolor green {X qv}\color{Green}{X\ qv}

Note 1: Unquoted text that is not a command is considered to be a variable. Variables are, by default, italicized.

Note 2: There are three custom fonts: serif (with serifs), sans (sans serif, meaning without serifs), and fixed (monospaced). To change the actual fonts used for custom fonts and the fonts used for variables (unquoted text), numbers and functions, use Format > Fonts.

Note 3: For all coloring, the color will apply only to the text immediately following the command until the next space is encountered. In order to have the color apply to more characters, place the text you want in color in curly brackets.

Miscellaneous

Operation Command Display
Infinityinfinity\infin
Partialpartial\partial
Nablanabla\nabla
There existsexists\exists
For allforall\forall
H barhbar\hbar
Lambda barlambdabarImage:Math_lambdabar.png
Real partre\Re
Imaginary partim\Im
Weierstrass pwp\wp
Left arrowleftarrow\leftarrow
Right arrowrightarrow\rightarrow
Up arrowuparrow\uparrow
Down arrowdownarrow\downarrow
Dots at bottomdotslow\ldots
Dots at middledotsaxis\cdots
Dots verticaldotsvert\vdots
Dots diagonal upwarddotsupImage:Math_dotsup.png
Dots diagonal downwarddotsdown\ddots

Brackets

Operation Command Display
Round Brackets(a)(a)
Square Brackets[b][b]
Double Square Bracketsldbracket c rdbracket[\![ c ]\!]
Single linelline a rline\vert a \vert
Double lineldline a rdline\Vert a \Vert
Braceslbrace w rbrace{w}
Bracesleft lbrace stack{0, n <> 0 # 1, n = 1} right none Image:lbrace.png
Angle Bracketslangle d rangle\langle d \rangle
Operator Bracketslangle a mline b rangle\langle a|b \rangle
Group brackets (used for program control){a}a
Scalable round brackets (add the word "left" before a left bracket and "right" before a right bracket)left ( stack{a # b # z} right )\begin{pmatrix} a \\ b \\ z \end{pmatrix}
Square brackets scalable
(as above)
left [ stack{ x # y} right ]\begin{bmatrix} x \\ y \end{bmatrix}
Double square brackets scalableleft ldbracket c right rdbracket[ \! [ c ] \! ]
Line scalableleft lline a right rline\vert a \vert
Double line scalableleft ldline d right rdline\Vert a \Vert
Brace scalableleft lbrace e right rbrace{a}
Angle bracket scalableleft langle f right rangle\langle f \rangle
Operator brackets scalableleft langle g mline h right rangle\langle g|h \rangle
Over brace scalable{The brace is above} overbrace a\overbrace{}^{a}
Under brace scalable{the brace is below}underbrace {f}\underbrace{}_{f}

Formats

Operation Command Display
Left superscripta lsup{b}{}^b\!a
Center superscripta csup{b}\overset{b}{a}
Right superscripta^{b}a^b\,\!
Left subscripta lsub{b}{}_b a \,\!
Center subscripta csub{b}\underset{b}{a}
Right subscripta_{b}a_b\,\!
Align character to left (text is aligned center by default)stack { Hello world # alignl (a) }
Hello world
(a)
Align character to centerstack{Hello world # alignc(a)}
Hello world
(a)
Align character to rightstack { Hello world # alignr(a)}
Hello world
(a)
Vertical stack of 2binom{a}{b}\begin{matrix} a \\ b \end{matrix}
Vertical stack, more than 2stack{a # b # z}\begin{matrix}a \\ b \\ z \end{matrix}
Matrixmatrix{
a # b ##
c # d
}
\begin{matrix}a & b \\ c & d \end{matrix}
Equations aligned at '=' (using 'matrix') matrix{
a # "=" # alignl{b} ##
{} # "=" # alignl{c+1}
}
\begin{align}a & = b \\ {} & = c+1 \end{align}
Equations aligned at '=' (using 'phantom') stack{
alignl{a} = b #
alignl{phantom{a} = c+1}
}
\begin{align}a & = b \\ {} & = c+1 \end{align}
New lineasldkfjo newline sadkfjasldkfjo
sadkfj
Small gap (grave)stuff `stuff{stu\!f\!\!f} ~ {stu\!f\!\!f}
Large gap (tilde)stuff~stuff{stu\!f\!\!f} \quad {stu\!f\!\!f}

Characters – Greek

Code Display Code Display Code Display Code Display Code Display
 %ALPHAΑ%BETAΒ%CHIΧ%DELTAΔ%EPSILONΕ
 %ETAΗ%GAMMAΓ%IOTAΙ%KAPPAΚ%LAMBDAΛ
 %MUΜ%NUΝ%OMEGAΩ%OMICRONΟ%PHIΦ
 %PIΠ%PSIΨ%RHOΡ%SIGMAΣ%THETAΘ
 %UPSILONΥ%XIΞ%ZETAΖ
 %alphaα%betaβ%chiχ%deltaδ%epsilonε
 %etaη%gammaγ%iotaι%kappaκ%lambdaλ
 %muμ%nuν%omegaω%omicronο%phiφ
 %piπ%rhoρ%sigmaσ%tauτ%thetaθ
 %upsilonυ%varepsilon\varepsilon%varphi\varphi%varpi\varpi%varrho\varrho
 %varsigma\varsigma%vartheta\vartheta%xiξ%zetaζ


Characters – Special

 %and \and%angle \angle%element \in%identical \equiv\,\!
 %infinite \infin\,\!%noelement \notin%notequal \ne\,\!%or \or
 %perthousand  %strictlygreaterthan \gg %strictlylessthan \ll %tendto \to\,\!


Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).




Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools
Create a book