You are on page 1of 5

GIN222

Applied programming for engineers


The Math class
• The Math class provides methods for common
mathematical calculations.
• Some of which:
– Absolute value
– Exponentiation
– Trigonometric functions
– Random numbers generation
• Already familiar with Math.sqrt and Math.pow.
The Math class

Java Software Solutions, Foundations of Program Design, 4th Edition, Lewis and Loftus, 2005
Pearson Addison-Wesley.
The Math class

Java Software Solutions, Foundations of Program Design, 4th Edition, Lewis and Loftus, 2005
Pearson Addison-Wesley.
The Math class

Java Software Solutions, Foundations of Program Design, 4th Edition, Lewis and Loftus, 2005
Pearson Addison-Wesley.

You might also like