Before some times i have asked you all a question plz answer that question the question is
Write the utility of math liburary function?
Write the use of any 3 mathematical functions with the help of the example?
Thanks
Answers
Answered by
1
The java.lang.Math class contains methods/functions for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.
some examples are
1) Math.sqrt()
Returns the square root of a positive number. Its return type is Double.
Ex. int a=49;
Math.sqrt(a);
Result 7.0;
2) Math.pow()
return the power of a given number
Ex. int a=5,b=2
Math.pow(a,b);
result 25
3) Math.Max()
Return the greatest number.
Ex Math.max(a,b);
Result : 5 (for above value of a and b)
Similar questions
Math,
6 months ago
Social Sciences,
6 months ago
Math,
6 months ago
Chemistry,
1 year ago
Science,
1 year ago
Social Sciences,
1 year ago
Biology,
1 year ago