~drizzle-trunk/drizzle/development

2397.1.3 by Daniel Nichter
Complete documenting 2nd half of plugins.
1
Mathematical Operators and Functions
1994.4.52 by Marisa Plumb
modifying folder structure
2
====================================
3
2397.1.3 by Daniel Nichter
Complete documenting 2nd half of plugins.
4
Operators
5
---------
6
2194.5.3 by Andrew Hutchings
Markup fixes
7
Mathematical operators are provided for many Drizzle types.
1994.4.52 by Marisa Plumb
modifying folder structure
8
2194.5.3 by Andrew Hutchings
Markup fixes
9
========    ==================   ============  ======
10
Operator    Description          Example       Result
11
========    ==================   ============  ======
12
``+``       addition             ``2 + 3``     5
13
``-``       subtraction          ``2 - 3``     -1
14
``*``       multiplication       ``2 * 3``     6
15
``/``       division             ``4 / 2``     2
16
``%``       modulo (remainder)   ``5 % 4``     1
17
``|/``      square root          ``|/ 25.0``   5
18
``||/``     cube root            ``||/ 27.0``  3
19
``!``       factorial            ``5 !``       120
20
``!!``      factorial            ``!! 5``      120
21
``@``       absolute value       ``@ -5.0``    5
22
========    ==================   ============  ======
2397.1.3 by Daniel Nichter
Complete documenting 2nd half of plugins.
23
24
.. _math_functions:
25
26
Functions
27
---------
28
29
The follow mathematical functions are provided by the
30
:doc:`/plugins/math_functions/index` plugin.
31
32
========  ======================
33
Funciton  Description
34
========  ======================
35
ABS       Absolute value
36
ACOS      Inverse cosine
37
ASIN      Inverse sine
38
ATAN      Inverse tangent
39
ATAN2     Inverse tangent
40
COS       Cosine
41
LOG       Natural logarithm
42
LOG2      Natural logarithm
43
LOG10     Base 10 logarithm
44
SIN       Sine
45
POW       Power
46
POWER     Power
47
LN        Natural logaritm
48
SQRT      Squart root
49
CEIL      Ceiling
50
CEILING   Ceiling
51
EXP       Exponential
52
FLOOR     Floor
53
ORD       Ordinal
54
========  ======================
55