Java.lang.Math.pow() is an inbuilt method that is used to calculate an exponential result by taking input in terms of one double value raised to another. This method can come handy while taking into consideration any algebraic expression in a program. This method accommodates all rules of exponentiation.

Java Math pow()

Math.pow() is used to calculate a number raised to the power of some other number. The Math.pow() function accepts two parameters and returns the value of the first parameter raised to the second parameter.

Syntax

public static double pow(double x, double y)

#java #java math pow

Java Math pow() Function Example
1.25 GEEK