Package kotlin. math
Mathematical functions and constants.
The functions include trigonometric, hyperbolic, exponentiation and power, logarithmic, rounding, sign and absolute value.
Mathematical functions and constants.
The functions include trigonometric, hyperbolic, exponentiation and power, logarithmic, rounding, sign and absolute value.
Mathematical functions and constants.
The functions include trigonometric, hyperbolic, exponentiation and power, logarithmic, rounding, sign and absolute value.
Mathematical functions and constants.
The functions include trigonometric, hyperbolic, exponentiation and power, logarithmic, rounding, sign and absolute value.
Functions
Returns the absolute value of the given value x.
Since Kotlin
Returns the absolute value of the given value n.
Since Kotlin
Returns the absolute value of the given value x.
Since Kotlin
Returns the absolute value of the given value n.
Since Kotlin
Returns the absolute value of the given value x.
Since Kotlin
Returns the absolute value of the given value n.
Since Kotlin
Computes the arc cosine of the value x; the returned value is an angle in the range from 0.0
to PI
radians.
Since Kotlin
Computes the arc cosine of the value x; the returned value is an angle in the range from 0.0
to PI
radians.
Since Kotlin
Computes the arc cosine of the value x; the returned value is an angle in the range from 0.0
to PI
radians.
Since Kotlin
Computes the arc sine of the value x; the returned value is an angle in the range from -PI/2
to PI/2
radians.
Since Kotlin
Computes the arc sine of the value x; the returned value is an angle in the range from -PI/2
to PI/2
radians.
Since Kotlin
Computes the arc sine of the value x; the returned value is an angle in the range from -PI/2
to PI/2
radians.
Since Kotlin
Computes the arc tangent of the value x; the returned value is an angle in the range from -PI/2
to PI/2
radians.
Since Kotlin
Computes the arc tangent of the value x; the returned value is an angle in the range from -PI/2
to PI/2
radians.
Since Kotlin
Computes the arc tangent of the value x; the returned value is an angle in the range from -PI/2
to PI/2
radians.
Since Kotlin
Returns the angle theta
of the polar coordinates (r, theta)
that correspond to the rectangular coordinates (x, y)
by computing the arc tangent of the value y / x; the returned value is an angle in the range from -PI
to PI
radians.
Since Kotlin
Returns the angle theta
of the polar coordinates (r, theta)
that correspond to the rectangular coordinates (x, y)
by computing the arc tangent of the value y / x; the returned value is an angle in the range from -PI
to PI
radians.
Since Kotlin
Returns the angle theta
of the polar coordinates (r, theta)
that correspond to the rectangular coordinates (x, y)
by computing the arc tangent of the value y / x; the returned value is an angle in the range from -PI
to PI
radians.
Since Kotlin
Computes exp(x) - 1
.
Since Kotlin
Computes exp(x) - 1
.
Since Kotlin
Computes exp(x) - 1
.
Since Kotlin
Computes sqrt(x^2 + y^2)
without intermediate overflow or underflow.
Since Kotlin
Computes sqrt(x^2 + y^2)
without intermediate overflow or underflow.
Since Kotlin
Computes sqrt(x^2 + y^2)
without intermediate overflow or underflow.
Since Kotlin
Computes the remainder of division of this value by the divisor value according to the IEEE 754 standard.
Since Kotlin
Computes ln(x + 1)
.
Since Kotlin
Computes ln(a + 1)
.
Since Kotlin
Computes ln(x + 1)
.
Since Kotlin
Computes ln(a + 1)
.
Since Kotlin
Computes ln(x + 1)
.
Since Kotlin
Computes ln(a + 1)
.
Since Kotlin
Since Kotlin
Since Kotlin
Since Kotlin
Returns the greater of two values.
Since Kotlin
Returns the greater of two values.
Since Kotlin
Returns the greater of two values.
Since Kotlin
Returns the greater of two values.
Since Kotlin
Returns the greater of two values.
Since Kotlin
Returns the smaller of two values.
Since Kotlin
Returns the smaller of two values.
Since Kotlin
Returns the smaller of two values.
Since Kotlin
Returns the smaller of two values.
Since Kotlin
Returns the smaller of two values.
Since Kotlin
Returns the Double value nearest to this value in direction of negative infinity.
Since Kotlin
Returns the Double value nearest to this value in direction of negative infinity.
Since Kotlin
Returns the Float value nearest to this value in direction of negative infinity.
Since Kotlin
Returns the Double value nearest to this value in direction of negative infinity.
Since Kotlin
Since Kotlin
Since Kotlin
Since Kotlin
Since Kotlin
Since Kotlin
Since Kotlin
Returns the Double value nearest to this value in direction of positive infinity.
Since Kotlin
Returns the Double value nearest to this value in direction of positive infinity.
Since Kotlin
Returns the Float value nearest to this value in direction of positive infinity.
Since Kotlin
Returns the Double value nearest to this value in direction of positive infinity.
Since Kotlin
Raises this value to the power x.
Since Kotlin
Raises this value to the integer power n.
Since Kotlin
Raises this value to the power x.
Since Kotlin
Raises this value to the integer power n.
Since Kotlin
Raises this value to the power x.
Since Kotlin
Raises this value to the integer power n.
Since Kotlin
Rounds the given value x towards the closest integer with ties rounded towards even integer.
Since Kotlin
Rounds the given value x towards the closest integer with ties rounded towards even integer.
Since Kotlin
Rounds the given value x towards the closest integer with ties rounded towards even integer.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Returns this value with the sign bit same as of the sign value.
Since Kotlin
Returns this value with the sign bit same as of the sign value.
Since Kotlin
Returns this value with the sign bit same as of the sign value.
Since Kotlin
Returns this value with the sign bit same as of the sign value.