Functions

object Functions

Object containing some useful functions.

See also

Properties

Link copied to clipboard

Returns the absolute value of the given value x.

Link copied to clipboard

Calculates the arc cosine of the value x. The returned value is an angle in the range from 0.0 to PI radians.

Link copied to clipboard

Calculates the inverse hyperbolic cosine of the value x. The returned value is positive y such that cosh(y) == x.

Link copied to clipboard

Calculates the arc sine of the value x. The returned value is an angle in the range from -PI/2 to PI/2 radians.

Link copied to clipboard

Calculates the inverse hyperbolic sine of the value x. The returned value is y such that sinh(y) == x.

Link copied to clipboard

Calculates the arc tangent of the value x. The returned value is an angle in the range from -PI/2 to PI/2 radians.

Link copied to clipboard

Returns the angle theta of the polar coordinates (r, theta) that correspond to the rectangular coordinates (x, y) by calculating the arc tangent of the value y / x; the returned value is an angle in the range from -PI to PI radians.

Link copied to clipboard

Calculates the inverse hyperbolic tangent of the value x. The returned value is y such that tanh(y) == x.

Link copied to clipboard

Rounds the given value x to an integer towards positive infinity. Returns the smallest double value that is greater than or equal to the given value x and is a mathematical integer.

Link copied to clipboard

Calculates the cosine of the angle x given in radians.

Link copied to clipboard

Calculates the hyperbolic cosine of the value x.

Link copied to clipboard

Calculates Euler's number e raised to the power of the value x.

Link copied to clipboard

Calculates exp(x) - 1. This function can be implemented to produce more precise result for x near zero.

Link copied to clipboard

Rounds the given value x to an integer towards negative infinity. Returns the largest double value that is smaller than or equal to the given value x and is a mathematical integer.

Link copied to clipboard

Calculates sqrt(x^2 + y^2) without intermediate overflow or underflow.

Link copied to clipboard

Calculates the natural logarithm (base E) of the value x.

Link copied to clipboard

Calculates ln(x + 1). This function can be implemented to produce more precise result for x near zero.

Link copied to clipboard

Calculates the logarithm of the value x to the given base.

Link copied to clipboard

Calculates the common logarithm (base 10) of the value x.

Link copied to clipboard

Calculates the binary logarithm (base 2) of the value x.

Link copied to clipboard

Returns the greater of two values.

Link copied to clipboard

Returns the smaller of two values.

Link copied to clipboard

Returns the Double value nearest to the value x in direction of negative infinity.

Link copied to clipboard

Returns the Double value nearest to the value x in direction from this value towards the value to.

Link copied to clipboard

Returns the Double value nearest to the value x in direction of positive infinity.

Link copied to clipboard
val NOT: Unit

Inverts the bits of the value x.

Link copied to clipboard

Raises the value x to the power n.

Link copied to clipboard

Rounds the given value x towards the closest integer with ties rounded towards even integer.

Link copied to clipboard

Returns the sign of the given value x:

Link copied to clipboard

Calculates the sine of the angle x given in radians.

Link copied to clipboard

Calculates the hyperbolic sine of the value x.

Link copied to clipboard

Calculates the positive square root of the value x.

Link copied to clipboard

Calculates the tangent of the angle x given in radians.

Link copied to clipboard

Calculates the hyperbolic tangent of the value x.

Link copied to clipboard

Rounds the given value x to an integer towards zero. Returns the value x having its fractional part truncated.

Link copied to clipboard

Returns the ulp (unit in the last place) of the value x. An ulp is a positive distance between this value and the next nearest Double value larger in magnitude.

Link copied to clipboard

Returns the value x with the sign bit same as of the sign value.