Additional Mathematical Operators
In Java, additional mathematical operators are given in a package called Math as methods. These methods typically use arguments and results of type double. To compute exponents:
The API: public static double pow(double a, double b)
Also: public static double sqrt (double a )
And many more, such as sin, cos, min, max!