Math commands - Reference

From OpenOffice.org Wiki

Jump to: navigation, search
PAGE_TITLE: TWF0aCBjb21tYW5kcyAtIFJlZmVyZW5jZQ==


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 * b
Boolean 'and'a and ba∧b
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


Relational operators

Operation Command Display
Is equala = ba=b
Is not equala <> ba≠b
Approximatelya approx 2a≈b
Dividesa divides b
Does not dividea ndivides b
Less thana < 2a<b
Greater thana > 2a>b
Similar to or equala simeq b
Parallela parallel b
Orthogonal toa ortho b
Less than or equal toa leslant b
Greater than or equal toa geslant b
Similar toa 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 b
Empty setemptyset
IntersectionA intersection BA∩B
UnionA union BA∪B
DifferenceA setminus B
QuotientA slash 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
Set of integerssetZ
Set of rational numberssetQ
Set of real numberssetR
Set of complex numberssetC



Functions

Operation Command Display
Exponentialfunc e^{a}
Natural logarithmln(a)
Exponential functionexp(a)
Logarithmlog(a)
Powera^{b}
Sinesin(a)
Cosinecos(a)
Tangenttan(a)
Cotangentcot(a)
Square rootsqrt{a}
Arcsinearcsin(a)
Arccosinearccos(a)
Arctangentarctan(a)
Arc cotangentarccot(a)
nth rootnroot{a}{b}
Hyperbolic sinesinh(a)
Hyperbolic cosinecosh(a)
Hyperbolic tangenttanh(a)
Hyperbolic cotangentcoth(a)
Absolute valueabs{a}
Arc hyperbolic sinearsinh(a)
Arc hyperbolic cosinearccosh(a)
Arc hyperbolic tangentarctanh(a)
Arc hyperbolic cotangentarccoth(a)
Factorialfact{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
a
3

Contour integrallint a\oint{a}
Double curved integralllint a
Triple curved integrallllint a
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
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 abc
Triple dotdddot a
Transparent (useful to get a placeholder of a given size)phantom a
Bold fontbold a\bold{a}
Italic font (see Note 1)ital “a"
Resize fontsize 16 qv
Following item in sans serif font (see Note 2)font sans qv
Following item in serif fontfont serif qv
Following item in fixed fontfont fixed qv
Make color of following text cyan (see Note 3)color cyan qv
Make color of following text yellowcolor yellow qv
Make color of following text whitecolor white qv
Make color of following text greencolor green qv
Make color of following text bluecolor blue qv
Make color of following text redcolor red qv
Make color green returns to default color blackcolor green X qv
Brace items to change color of more than one itemcolor 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
Lambda barlambdabar
Real partre\Re
Imaginary partim\Im
Weierstrass pwp
Left arrowleftarrow\leftarrow
Right arrowrightarrow\rightarrow
Up arrowuparrow
Down arrowdownarrow
Dots at bottomdotslow
Dots at middledotsaxis
Dots verticaldotsvert
Dots diagonal upwarddotsup
Dots diagonal downwarddotsdown


Brackets

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

Formats

Operation Command Display
Left superscripta lsup{b}{}^b\!a
Center superscripta csup{b}\overset{b}{a}
Right superscripta^{b}ab
Left subscripta lsub{b}{}_b\!a
Center subscripta csub{b}\underset{b}{a}
Right subscripta_{b}ab
Align character to left (text is aligned center by default)stack { Hello world # alignl (a) }
Align character to centerstack{Hello world # alignc(a)}
Align character to rightstack { Hello world # alignr(a)}
Vertical stack of 2binom{a}{b}\stackrel{a}{b}
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 sadkfj
Small gap (grave)stuff `stuff
Large gap (tilde)stuff~stuff


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 %strictlylessthan %tendto


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