~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to docs/functions/mathematical.rst

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Mathematical Operators and Functions
 
2
====================================
 
3
 
 
4
Operators
 
5
---------
 
6
 
 
7
Mathematical operators are provided for many Drizzle types.
 
8
 
 
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
========    ==================   ============  ======
 
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