1
Mathematical Operators and Functions
2
====================================
7
Mathematical operators are provided for many Drizzle types.
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
======== ================== ============ ======
29
The follow mathematical functions are provided by the
30
:doc:`/plugins/math_functions/index` plugin.
32
======== ======================
34
======== ======================
42
LOG2 Natural logarithm
43
LOG10 Base 10 logarithm
54
======== ======================