Numbers

To compute usual arithmetical operations, use the symbols: (, ), +, -, *, /, ^ (for exponentiation).

There's a C-like ternary test operator using the symbols ? and |. To perform a test one may use the following comparison and logical operators: ==, !=, <=, >=, <, >, and, or, not.

The available numerical functions are: abs(x), min(x), max(x), clamp(x, y, z) (which returns x if y<=x<=z, y if x<y, z if x>z), sign(x), (which returns -1 if x<0, 0 if x=0, 1 if x>0), ceil(x), floor(x), round(x), sqrt(x), exp(x), ln(x), sin(x), cos(x), tan(x), asin(x), acos(x), atan(x), deg(x) (to convert radians in degrees), rad(x) (to convert degrees in radians).

There is one constant: pi.

Next, the following number valued functions are also available:

Last, there are all the angle measure functions. The result is in degrees. Eukleides handles directed angles, hence angle returns a signed number greater than -180° and smaller than or equal to 180°.





Go to: Reference index Previous page Next page Concept index Command index