sin(x) Sine cos(x) Cosine tan(x) Tangent --------------------------------------------------------------------------- acos(x), arccos(x) Arccosine asin(x), arcsin(x) Arcsine atan(x), arctan(x) Arctangent atan2(n,d) Arctangent of [n]/[d] --------------------------------------------------------------------------- sinh(x) Hyperbolic sine cosh(x) Hyperbolic cosine tanh(x) Hyperbolic tangent --------------------------------------------------------------------------- ln(x), log(x) Natural logarithm lg(x), log10(x) Base-10 logarithm lb(x), ld(x) Base-2 logarithm exp(x) e^x pow(a,x) a^x --------------------------------------------------------------------------- sqr(x) Square sqrt(x) Square root abs(x) Absolute value ceil(x) Ceiling floor(x), int(x) Floor / Integer --------------------------------------------------------------------------- deg(r) Degree from radiant rad(d) Radiant from degree --------------------------------------------------------------------------- mod(a,b) Floating point remainder sgn(x), sign(x) Sign {-1; 0; 1} rnd(), rand() Random in [0..1] time() Unix timestamp --------------------------------------------------------------------------- max(...) Maximum min(...) Minimum mean(...), avg(...) Arithmetic mean (average) var(...), mse(...) Variance / mean square error stdev(...), rmse(...) Standard deviation / root mean square error --------------------------------------------------------------------------- equal(a,b) [a]==[b] above(a,b) [a]>[b] below(a,b) [a]<[b] cmp(a,b) cmp(a,b) := sign(a-b) --------------------------------------------------------------------------- if(c,y,n), ite(c,y,n) if-then-else band(a,b) Boolean AND bor(a,b) Boolean OR bnot(x) Boolean NOT --------------------------------------------------------------------------- e 2.718281828 pi 3.141592653 true 1.0 false 0.0