Computer Science, asked by revantrastogi106, 5 months ago

can someone explain how to use math.pow in java​

Answers

Answered by alefiyahashfi
1

Answer:

The java. lang. Math. pow() is used to calculate a number raise to the power of some other number. If the second parameter is positive or negative zero then the result will be 1.0. If the second parameter is 1.0 then the result will be same as that of the first parameter.

Math. pow(double a, double b) returns the value of a raised to the power of b . It's a static method on Math class, which means you don't have to instantiate a Math instance to call it. The power of a number is the number of times the number is multiplied by itself

Answered by Anonymous
5

The java. lang. Math. pow() is used to calculate a number raise to the power of some other number.

1) If the second parameter is positive or negative zero then the result will be 1.0.

2) If the second parameter is 1.0 then the result will be same as that of the first parameter.

Hope My Answer Helps You ☺️

Happy New Year ❤️

Similar questions