Maths module
This module contains various mathematical and trigonometric operators for floating-point numbers, as well as useful constants such as Pi.
It is automatically imported (via the Prelude module) unless
the -noprelude compiler option is used.
Functions
- Float M_E() - Numerical constant
- Float PI() - Numerical constant
- Float SQRT_2() - Numerical constant
- Float SQRT_PI() - Numerical constant
- Float acos(Float x) - ArcCosine
- Float asin(Float x) - ArcSine
- Float atan(Float x) - ArcTangent
- Float ceil(Float x) - Round up
- Float cos(Float x) - Cosine
- Float exp(Float x) - Base-e exponential
- Float floor(Float x) - Round down
- Float log(Float x) - Natural logarithm
- Float log10(Float x) - Base 10 logarithm
- Float pow(Float x,Float e) - Power function
- Int pow(Int x,Int e) - Power function
- Float sin(Float x) - Sine
- Float sqrt(Float x) - Square root
- Float tan(Float x) - Tangent