Version: alpha
FUNCTION | |
---|---|
math.abs() | absolute value |
math.acos() | arc cosine |
math.asin() | arc sine |
math.atan() | arc tangent |
math.atan2() | arc tangent of v1/v2 |
math.ceil() | next higher integer value |
math.cos() | cosine |
math.cosh() | hyperbolic cosine |
math.deg() | convert from radians to degrees |
math.exp() | raises e to a power |
math.floor() | next smaller integer value |
math.fmod() | the modulus (remainder) of doing: v1 / v2 |
math.frexp() | break number into mantissa and exponent |
math.ldexp() | compute m* 2^n |
math.log() | natural log |
math.log10() | log to the base 10 |
math.max() | the highest of one or more numbers |
math.min() | the lowest of one or more numbers |
math.modf() | returns the integral and fractional part of its argument |
math.pow() | raise a number to a power |
math.rad() | convert degrees to radians |
math.random() | generate a random number |
math.randomseed() | seeds the random number generator |
math.sin() | sine |
math.sinh() | hyperbolic sine |
math.sqrt() | square root |
math.tan() | tangent |
math.tanh() | hyperbolic tangent |
CONSTANT | |
---|---|
math.huge | a huge value |
math.pi | the value of pi |
math.abs(x)
PARAMETERS
x |
math.acos(x)
PARAMETERS
x |
math.asin(x)
PARAMETERS
x |
math.atan(x)
PARAMETERS
x |
math.atan2(y,x)
y/x
(in radians),
but uses the signs of both parameters to find the
quadrant of the result.
(It also handles correctly the case of x being zero.)
PARAMETERS
y |
|
x |
math.ceil(x)
PARAMETERS
x |
math.cos(x)
PARAMETERS
x |
math.cosh(x)
PARAMETERS
x |
math.deg(x)
PARAMETERS
x |
math.exp(x)
PARAMETERS
x |
math.floor(x)
PARAMETERS
x |
math.fmod(x,y)
PARAMETERS
x |
|
y |
math.frexp(x)
PARAMETERS
x |
math.ldexp(m,e)
PARAMETERS
m |
|
e |
math.log(x)
PARAMETERS
x |
math.log10(x)
PARAMETERS
x |
math.max(x,...)
PARAMETERS
x |
|
... |
math.min(x,...)
PARAMETERS
x |
|
... |
math.modf(x)
PARAMETERS
x |
math.pow(x,y)
x^y
to compute this value.)
PARAMETERS
x |
|
y |
math.rad(x)
PARAMETERS
x |
math.random([m],[n])
PARAMETERS
[m] |
|
[n] |
math.randomseed(x)
PARAMETERS
x |
math.sin(x)
PARAMETERS
x |
math.sinh(x)
PARAMETERS
x |
math.sqrt(x)
x^0.5
to compute this value.)
PARAMETERS
x |
math.tan(x)
PARAMETERS
x |
math.tanh(x)
PARAMETERS
x |
a huge value
The value HUGE_VAL, a value larger than or equal to any other numerical value.
the value of pi
The value of PI.