cbrt
Returns the cube root of x. For any x
, cbrt(-x) == -cbrt(x)
; that is, the cube root of a negative value is the negative of the cube root of that value's magnitude. Special cases:
Special cases:
If the argument is
NaN
, then the result isNaN
.If the argument is infinite, then the result is an infinity with the same sign as the argument.
If the argument is zero, then the result is a zero with the same sign as the argument.
Since Kotlin
1.8Returns the cube root of x. For any x
, cbrt(-x) == -cbrt(x)
; that is, the cube root of a negative value is the negative of the cube root of that value's magnitude. Special cases:
Special cases:
If the argument is
NaN
, then the result isNaN
.If the argument is infinite, then the result is an infinity with the same sign as the argument.
If the argument is zero, then the result is a zero with the same sign as the argument.
Since Kotlin
1.8Returns the cube root of x. For any x
, cbrt(-x) == -cbrt(x)
; that is, the cube root of a negative value is the negative of the cube root of that value's magnitude. Special cases:
Special cases:
If the argument is
NaN
, then the result isNaN
.If the argument is infinite, then the result is an infinity with the same sign as the argument.
If the argument is zero, then the result is a zero with the same sign as the argument.
Since Kotlin
1.8Returns the cube root of x. For any x
, cbrt(-x) == -cbrt(x)
; that is, the cube root of a negative value is the negative of the cube root of that value's magnitude. Special cases:
Special cases:
If the argument is
NaN
, then the result isNaN
.If the argument is infinite, then the result is an infinity with the same sign as the argument.
If the argument is zero, then the result is a zero with the same sign as the argument.
Since Kotlin
1.8Returns the cube root of x. For any x
, cbrt(-x) == -cbrt(x)
; that is, the cube root of a negative value is the negative of the cube root of that value's magnitude. Special cases:
Special cases:
If the argument is
NaN
, then the result isNaN
.If the argument is infinite, then the result is an infinity with the same sign as the argument.
If the argument is zero, then the result is a zero with the same sign as the argument.
Since Kotlin
1.8Returns the cube root of x. For any x
, cbrt(-x) == -cbrt(x)
; that is, the cube root of a negative value is the negative of the cube root of that value's magnitude. Special cases:
Special cases:
If the argument is
NaN
, then the result isNaN
.If the argument is infinite, then the result is an infinity with the same sign as the argument.
If the argument is zero, then the result is a zero with the same sign as the argument.