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
Share
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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
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)