Get the cube root of a double value in Java
Description
The following code shows how to get the cube root of a double value.
Example
/* ww w . ja v a 2s . co m*/
public class Main {
public static void main(String[] args) {
System.out.println("cbrt(x) = " + Math.cbrt(0.5));
}
}
The code above generates the following result.