math
This module provides mathematical and random number generator functions
import math
y = sin(30) ' Calculates sine of 30 (in radians)
writeln(math_pi) ' Prints mathematical π constant
abs()
— Get absolute value of x
acos()
— Calculate inverse cosine of x
, expressed in radiansacosd()
— Calculate inverse cosine of x
, expressed in degreesacosh()
— Calculate inverse hyperbolic cosine of x
asin()
— Calculate inverse sine of x
, expressed in radiansasind()
— Calculate inverse sine of x
, expressed in degreesasinh()
— Calculate inverse hyperbolic sine of x
atan()
— Calculate inverse tangent of x
, expressed in radiansatand()
— Calculate inverse tangent of x
, expressed in degreesatanh()
— Calculate inverse hyperbolic tangent of x
ceil()
— Round x
upwardcos()
— Calculate cosine of x
in radianscosd()
— Calculate cosine of x
in degreescosh()
— Calculate hyperbolic cosine of x
exp()
— Calculate base-e exponential function of x
. exp(x) = exfloor()
— Round x
downwardgetnumber()
— Convert value
to a numberint()
— Convert x
to integer valueln()
— Calculate natural logarithm (base-e) of x
log()
— Calculate base-10 logarithm of x
logn()
— Calculate base-n
logarithm of x
random()
— Get random value between min
and max
randomint()
— Get random integer value between min
and max
round()
— Round x
to specified precision
sign()
— Get sign of a numbersin()
— Calculate sine of x
in radianssind()
— Calculate sine of x
in degreessinh()
— Calculate hyperbolic sine of x
sqrt()
— Calculate square root of x
tan()
— Calculate tangent of x
in radianstand()
— Calculate tangent of x
in degreestanh()
— Calculate hyperbolic tangent of x
There are no classes.