# Class documentation: System.math

Mathematical functions and constants.

System.object

## Classes contained

• `System.math.range`: Object representing a range of numbers.

## Properties

• `E`: E
• `LN10`: LN10
• `LN2`: LN2
• `LOG10E`: LOG10E
• `LOG2E`: LOG2E
• `ONE_PI`: ONE_PI
• `PI`: PI
• `PI_2`: PI_2
• `PI_4`: PI_4
• `SQRT1_2`: SQRT1_2
• `SQRT2`: SQRT2
• `TWO_PI`: TWO_PI
• `TWO_SQRTPI`: TWO_SQRTPI

## Methods

• `acos(x)`: Returns the arccosine of x.
• `acosh(x)`: Returns the inverse hyperbolic cosine of x.
• `asin(x)`: Returns the arcsine of x.
• `asinh(x)`: Returns the inverse hyperbolic sine of x.
• `atan(x)`: Returns the arctangent of x.
• `atan2(x, y)`: Returns the arctangent of y/x.
• `atanh(x)`: Returns the inverse hyperbolic tangent of x.
• `cbrt(x)`: Returns the cubic root of x.
• `ceil(x)`: Returns the smallest integer not less than x.
• `cos(x)`: Returns the cosine of x.
• `cosh(x)`: Returns the hyperbolic cosine of x.
• `erf(x)`: Returns the error function of x.
• `erfc(x)`: Returns the complimentary error function of x.
• `exp(x)`: Returns the value of e raised to x.
• `fabs(x)`: Returns the absolute value of x.
• `floor(x)`: Returns the largest integer not greater than x.
• `fmod(x, y)`: Returns the floating-point remainder of x/y.
• `hypot(x, y)`: Returns sqrt(x*x + y*y).
• `ilogb(x)`: Returns the exponent of x (as integer).
• `isnan(x)`: Returns whether the given number is NaN.
• `j0(x)`: Returns the Bessel function of the first kind (order 0) of x.
• `j1(x)`: Returns the Bessel function of the first kind (order 1) of x.
• `lgamma(x)`: Returns the log_e of gamma(|x|).
• `log(x)`: Returns the natural logarithm of x.
• `log10(x)`: Returns the logarithm base 10 of x.
• `logb(x)`: Returns the exponent of x (as floating-point).
• `nextafter(x, y)`: Returns the next representable number from x in direction y.
• `pow(x, y)`: Returns x raised to the power of y.
• `random()`: Returns a random number
• `remainder(x, y)`: Returns the remainder of x/y.
• `rint(x)`: Returns x rounded to an integer.
• `scalb(x, y)`: Returns the value of x*r^y.
• `sin(x)`: Returns the sine of x.
• `sinh(x)`: Returns the hyperbolic sine of x.
• `sqrt(x)`: Returns the square root of x.
• `srandom(x)`: Sets random number generator's seed.
• `tan(x)`: Returns the tangent of x.
• `tanh(x)`: Returns the hyperbolic tangent of x.
• `y0(x)`: Returns the Bessel function of the second kind (order 0) of x.
• `y1(x)`: Returns the Bessel function of the second kind (order 1) of x.