Next: Random Numbers, Previous: Bitwise Operations, Up: Numbers
These mathematical functions allow integers as well as floating point numbers as arguments.
These are the ordinary trigonometric functions, with argument measured in radians.
The value of
(asin
arg)
is a number between −pi/2 and pi/2 (inclusive) whose sine is arg; if, however, arg is out of range (outside [-1, 1]), then the result is a NaN.
The value of
(acos
arg)
is a number between 0 and pi (inclusive) whose cosine is arg; if, however, arg is out of range (outside [-1, 1]), then the result is a NaN.
The value of
(atan
arg)
is a number between −pi/2 and pi/2 (exclusive) whose tangent is arg.
This is the exponential function; it returns e to the power arg. e is a fundamental mathematical constant also called the base of natural logarithms.
This function returns the logarithm of arg, with base base. If you don't specify base, the base e is used. If arg is negative, the result is a NaN.
This function returns the logarithm of arg, with base 10. If arg is negative, the result is a NaN.
(log10
x)
==(log
x10)
, at least approximately.