StrictMath.Cbrt(Double) Method

Definition

Returns the cube root of a double value.

[Android.Runtime.Register("cbrt", "(D)D", "")]
public static double Cbrt (double a);
[<Android.Runtime.Register("cbrt", "(D)D", "")>]
static member Cbrt : double -> double

Parameters

a
Double

a value.

Returns

the cube root of a.

Attributes

Remarks

Returns the cube root of a double value. For positive finite 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:

<ul>

<li>If the argument is NaN, then the result is NaN.

<li>If the argument is infinite, then the result is an infinity with the same sign as the argument.

<li>If the argument is zero, then the result is a zero with the same sign as the argument.

</ul>

Added in 1.5.

Java documentation for java.lang.StrictMath.cbrt(double).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to