add predefined classes for visual and width lengths, and aliases for user lengths
[PyX/mjg.git] / manual / mathtree.tex
blob0c2a9a5c92759a09badfdb4e05a18910ece90119
1 \chapter{Mathematical expressions}
2 \label{mathtree}
4 At several points within \PyX{} mathematical expressions can be
5 provided in form of string parameters. They are evaluated by the
6 module \verb|mathtree|. This module is not described futher in this
7 user manual, because it is considered to be a technical detail. We
8 just give a list of available operators, functions and predefined
9 variable names here here.
11 \begin{description}
12 \item[Operators:]
13 \verb|+|; \verb|-|; \verb|*|; \verb|/|; \verb|**| and \verb|^| (both
14 for power)
15 \item[Functions:]
16 \verb|neg| (negate); \verb|sgn| (signum); \verb|sqrt| (square root);
17 \verb|exp|; \verb|log| (natural logarithm); \verb|sin|, \verb|cos|,
18 \verb|tan|, \verb|asin|, \verb|acos|, \verb|atan| (trigonometric
19 functions in radian units); \verb|sind|, \verb|cosd|, \verb|tand|,
20 \verb|asind|, \verb|acosd|, \verb|atand| (as before but in degree
21 units); \verb|norm| ($\sqrt{a^2+b^2}$ as an example for functions with
22 multiple arguments)
23 \item[predefined variables:]
24 \verb|pi| ($\pi$); \verb|e| ($e$)
25 \end{description}