How to use Math methods

Essential Math methods

Math.abs — Absolute value

Math.pow — Exponentiation

Math.sqrt — Square root

Pythagorean theorem example

Math.random — Random doubles

Generating random integers in a range

Static methods explained

Complete example: Distance calculator

AP Exam Tips

Common Mistakes

Key Vocabulary