Math-O-Matics
- Class Math-contains a number of methods and constant variables
- must precede the method call by the class name and the dot operator (.)
- Sqrt Method- Math.Sqrt(4,5)
- Pow Method- Math.Pow(2,3)
- Math.Sqrt(___#___);
- double answer = Math.Sqrt (9,5);
- result = 10.2 + Math.Sqrt(number);
- Math.Pow(___#___);
- Pow is a method that takes two actual arguments
- base value, value that you base value raised to
- Other Math Methods-
- Absolute value (Abs)
- Sine (Sin)
- Consine (Cos)
- Tangent (Tan)
- Max of 2 # (Max)
- Min of 2 # (Min)
- Rounding a number (Round)