i.Math.pow( 4 , 3 ) + Math .cbrt (125) ;
ii. Math .ceil (7 .9 ) + Math .floor ( 9. 2 ) ; find out tge output
Answers
Answer:
i.69.0
ii. 17.0
Explanation:
i. The Math.pow function returns the first number (in this case 4) raised to the number of the second number (in this case 3) which is = 4^3 = 64. The match.cbrt function returns the cube root of the given number (in this case 125) the cube root of the given number is 5 , so 64 + 5 = 69.0
ii. The Math.ceil method returns the smallest (closest to negative infinity) floating-point value that is greater than or equal to the argument and is equal to a mathematical integer(It returns a number that does not have a decimal point which is greater than the given number ) eg. Math.ceil (0.458) = 1.0 . Match.ceil (7.9) = 8 . The match.floor method returns the largest (closest to positive infinity) floating-point value that less than or equal to the argument and is equal to a mathematical integer (it returns a number which does not have a decimal point which is greater than or less than the given number) eg. Math.floor( 0.458) = 0.0 . Math.floor (9.2) = 9.0 , therefore 8 + 9 = 17
Hopefully this helped you :)