Question: write one java program and evaluate all the following method calls that utilize the Math class: 1 . Math.sqrt ( 4 ) 2 . Math.sin

write one java program and evaluate all the following method calls that utilize the Math class: 1. Math.sqrt(4)2. Math.sin(2* Math.PI)3. Math.cos(2* Math.PI)4. Math.pow(2,2)5. Math.log(Math.E)6. Math.exp(1)7. Math.max(2, Math.min(3,4))8. Math.rint(-2.5)9. Math.ceil(-2.5)10. Math.floor(-2.5)11. Math.round(-2.5f)12. Math.round(-2.5)13. Math.rint(2.5)14. Math.ceil(2.5)15. Math.floor(2.5)16. Math.round(2.5f)17. Math.round(2.5)18. Math.round(Math.abs(-2.5))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!