Explain the following Math functions in Java:
Math.sqrt()
31 Likes
Returns the square root of its argument as a double value. For example, Math.sqrt(25) will return 5.0.
Answered By
21 Likes
Explain the following function:
Math.cbrt()
Math.random()
Math.abs()
What is wrong with the following statements? Explain.
i. result = (5/10) * Math.sqrt( a );
ii. result = math.sqrt(b * b - 4 * a * c) / ( 2 * a );