![]() |
VOOZH | about |
The java.lang.StrictMath.cbrt() is an inbuilt method in Java which is used to return the cube root of a given double value. The method shows three special results:
Syntax:
public static double cbrt(double num)
Parameters: This method accepts one parameter num which is of double type whose cube root is required to be found.
Return Value : The method returns the cube root of num.
Below programs illustrate the java.lang.StrictMath.cbrt() method:
Program 1:
Cube root of 8.05 = 2.0041580161269152 Cube root of 27.0 = 3.0 Cube root of 0.0 = 0.0
Program 2:
Cube root of -8.05 = -2.0041580161269152 Cube root of 128.0 = 5.039684199579493 Cube root of 0.0 = 0.0