Difference between revisions of "Documentation/UserGuide/Math/Syntax"
Line 36: | Line 36: | ||
<math>A {\color{red}{BC}} D</math> | <math>A {\color{red}{BC}} D</math> | ||
+ | |||
+ | = Operators and Relations = | ||
+ | |||
+ | Writing on a Math object the command ''over'' without any other text, only a red question mark will be obtained: the command ''over'' is a ''binary operator'' that needs two objects (numerator and denominator of the fraction) to work. | ||
+ | |||
+ | == Unitary Operators == | ||
+ | |||
+ | Unitary operators only need one element. Example of unitary operators are: | ||
+ | |||
+ | '''+a''' will give <math>+a</math> | ||
+ | |||
+ | '''-a''' will give <math>-a</math> | ||
+ | |||
+ | '''+-a''' will give <math>\pm a</math> | ||
+ | |||
+ | '''-+a''' will give <math>\mp a</math> | ||
+ | |||
+ | Other examples the the sum operator, the integral (int), close integral (oint), etc. | ||
+ | |||
+ | |||
[[Category:Documentation]] [[Category:Documentation/Math]] | [[Category:Documentation]] [[Category:Documentation/Math]] |
Revision as of 23:33, 3 February 2013
Template:Documentation/DraftPage
On this section some basic elements about how to build a mathematical expression on Apache OpenOffice Math will be provided.
Simple Commands and Functions
As seen on the section about inserting a Math object, the Math editor works on "text mode".
There are several kinds of Math instructions, all of them represented by text with a particular meaning. For example, writing %gamma a Greek character will be obtained, cos will be interpreted as the cosine function while newline will insert a new line on the expression.
Commands that Needs Parameters
Some commands needs to be applied to other object because alone do not have sense. For example, the "decorations" like a vector arrow:
vec a
will give while
widevec a
will give
This second command can be used to put the arrow over more than one element, to obtain for example
There are also instructions that need the use of parameters to define their action, for example the command "color"
A color red {BC} D
will give
Operators and Relations
Writing on a Math object the command over without any other text, only a red question mark will be obtained: the command over is a binary operator that needs two objects (numerator and denominator of the fraction) to work.
Unitary Operators
Unitary operators only need one element. Example of unitary operators are:
+a will give
-a will give
+-a will give
-+a will give
Other examples the the sum operator, the integral (int), close integral (oint), etc.