Math.cbrt(double a) Returns the cube root of a double value. : Math « java.lang « Java by API





Math.cbrt(double a) Returns the cube root of a double value.

  


public class Main {
  public static void main(String[] args) {
    int a = 10;
    int b = -50;
    int c = 3;
    double x = 25.0;
    double y = 3.0;
    double z = 4.0;

    System.out.println("abs(b)     = " + Math.abs(b));
    System.out.println("cbrt(x)   = " + Math.cbrt(x));
    System.out.println("exp(y)     = " + Math.exp(z));
    System.out.println("hypot(y, z)= " + Math.hypot(y, z));

    System.out.println("log(y)    = " + Math.log(y));
    System.out.println("log10(y)  = " + Math.log10(y));
    System.out.println("max(a, b) = " + Math.max(a, b));
    System.out.println("min(a, b) = " + Math.min(a, b));
    System.out.println("pow(a, c) = " + Math.pow(a, c));
    System.out.println("random()  = " + Math.random());
    System.out.println("signum(b) = " + Math.signum(b));
    System.out.println("sqrt(x)   = " + Math.sqrt(y));
  }
}

   
    
  










Related examples in the same category

1.Math.E
2.Math.PI
3.Math: abs(int value)
4.Math: ceil(float value)
5.Math: copySign(double magnitude, double sign)
6.Math: cos(double doubleValue)
7.Math: exp(double a)
8.Math: floor(float value)
9.Math: getExponent(double d)
10.Math.hypot(double x, double y) Returns sqrt(x2 +y2) without intermediate overflow or underflow.
11.Math: log(double doubleValue)
12.Math.log10(double a)
13.Math: max(int value1, int value2)
14.Math: min(double a, double b)
15.Math: min(int value1, int value2)
16.Math: nextAfter(double start, double direction)
17.Math: nextUp(double d)
18.Math: pow(int a, int b)
19.Math: random()
20.Math.round(double a)
21.Math: scalb(double d, int scaleFactor)
22.Math.signum(float f)
23.Math: sin(double doubleValue)
24.Math.sqrt(int intValue)
25.Math: tan(double doubleValue)
26.Math: toDegrees(double theta)
27.Math: toRadians(double theta)