The constants Pi (=3.1415...) and e (=2.7183...) are recognized.
The usual basic arithmetic operations +, -, * and / as well as the modulo operator % are recognized. Point before dash calculations are taken into account and brackets are recognized.
The following functions are recognized:
| Function | Function Description |
|---|---|
| sin(x) | Sine of x (x is assumed to be in radians) |
| cos(x) | Cosine of x (x is assumed to be in radians) |
| tan(x) | Tangent of x (x is assumed to be in radians) |
| asin(x) | Arc sine of x (x is assumed to be in radians) |
| acos(x) | Arc cosine of x (x is assumed to be in radians) |
| atan(x) | Arc tangent of x (x is assumed to be in radians) |
| sqrt(x) | Square root of x. If x is negative, NaN is returned. |
| log(x) | Natural logarithm of x. |
| abs(x) | Absolute value of x |
| ceil(x) | Rounds x up to the nearest whole number. |
| floor(x) | Rounds x down to the nearest integer. |
| round(x) | Rounds x to the nearest integer (up or down). |
| exp(x) | Calculatesex with e=2.7183... |
| random(n) | Returns a random number in the range [0, n). |
| fac(n) | Calculates n! (factorial) |
| min(a,b,...) | Calculates the minimum of the passed parameters. |
| max(a,b,...) | Calculates the maximum of the passed parameters. |
| pyt(a, b) | Pythagoras function, i.e. the c in "c2 = a2 + b2" |
| pow(x, y) | Calculates xy |
| atan2(y, x) | Arc tangents of x/y, i.e. calculates the angle between (0,0) and (x,y) in radians. |