Computer Science, asked by sadoranda, 3 months ago

state the output for
(a)
double e= math.pow(math.sqrt(25),3);
system.out.println(e);
(b)
system.out.print(math.ciel( -4.3));

Answers

Answered by alexzandertrowbridge
0

A. The Math.pow() function returns the base to the exponent power, that is, baseexponent.

B. The java.lang.Math class that comes bundled with Java contains various methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.

Answered by atrs7391
2

Answer:

(a) 125.0

(b) -4.0

Hope you got your answer and I think you only wants direct answers so I didn't explained. If you want explanation comment me down.

And btw, there are mistakes in the program. Just said for info


sadoranda: I want explanation
atrs7391: double e= math.pow(math.sqrt(25),3); means e = Math.pow means it will add powers (exponent) to a base and here the exponent is 3 and base is Math.sqrt(25) which means squareroot of 25 which is 5 and the first function Math.pow which will add power 3 to 5 that means 5*5*5 which is 125
atrs7391: system.out.print(math.ciel( -4.3)); the function Math.ceil() rounds of the decimal number in the bracket to it's highest value which here is -4.3 and when rounded of it becomes -4.0
Similar questions