Next: , Previous: System_exceptions, Up: Standard Library


3.2.3 System.math

This package/class contains Kite's math-related classes.

3.2.3.1 System.math

Common Kite math functions.

Supported constants:

E
The value of e.
LOG2E
The value of log base 2 of e.
LOG10E
The value of log base 10 of e.
LN2
The value of ln 2.
LN10
The value of ln 10.
PI
The value of pi.
PI_2
The value of pi/2.
PI_4
The value of pi/4.
ONE_PI
The value of 1/pi.
TWO_PI
The value of 2/pi.
TWO_SQRTPI
The value of 2/sqrt(pi).
SQRT2
The value of sqrt(2).
SQRT1_2
The value of 1/sqrt(2).

Supported methods:

acos(val)
Arccosine of val.
asin(val)
Arcsine of val.
atan(val)
Arctangent of val.
atan(y,x)
Arctangent of y/x.
ceil(val)
Smallest integer greater than or equal to val.
cos(val)
Cosine of val.
cosh(val)
Hyperbolic cosine of val.
exp(val)
Returns the value of e^val.
fabs(val)
Absolute value of val.
floor(val)
Largest integer less than or equal to val.
fmod(dividend, divisor)
Modulus of dividend / divisor.
log(val)
log base e of val.
log10(val)
log base 10 of val.
pow(val, power)
Raise val to the power of power.
sin(val)
Sine of val.
sinh(val)
Hyperbolic sine of val.
sqrt(val)
Square root of val.
tan(val)
Tangent of val.
tanh(val)
Hyperbolic tangent of val.
erf(val)
Error function of val.
erfc(val)
1.0 -erf(val).
gamma(val)
Logarithmic gamma of val.
hypot(x, y)
Hypotenuse of x and y.
j0(val)
Bessel function of the first kind (order 0).
j1(val)
Bessel function of the first kind (order 1).
lgamma(val)
Logarithmic gamma of val.
y0(val)
Bessel function of the second kind (order 0).
y1(val)
Bessel function of the second kind (order 1).
isnan(val)
Returns true if val is NaN, false otherwise.
acosh(val)
Arc-hyperbolic cosine of val.
asinh(val)
Arc-hyperbolic sine of val.
atanh(val)
Arc-hyperbolic tangent of val.
cbrt(val)
Cube root of val.
ilogb(val)
Exponent part of val (as integer).
logb(val)
Exponent part of val (as floating-point).
nextafter(x,y)
Returns next representable floating-point number following x in the direction of y.
remainder(x,y)
Returns floating-point remainder of dividing x/y.
rint(val)
Returns value nearest val in direction of rounding mode.
scalb(x,n)
Returns x*r^n, where r is the radix of the machine's floating point arithmetic.