The Math package provides some math functions like multiplication, addition etc.
Simple addition.
| Math.Addition | ||
| a | b | sum() |
| 1 | 1 | 2 |
| 5 | 7 | 12 |
| 5 | 7 | 11 |
| 3 | 7 | 10 |
Simple division.
| Math.Division | ||
| a | b | quotient() |
| 4 | 2 | 2 |
| 9 | 0 | division by zero! |
| 4 | 0 | 2 |
| 21 | 7 | 3 |
| 9 | 6 | 1.5 |
| 12 | 3 | 4 |
| 2 | 2 | 1 |
Some trigonmetry functions
| Math.Trigonometry | |||
| degree | sin() | cos() | tan() |
| 0 | 0 | 1 | 0 |
| 45 | 0.707 | 0.707 | 1 |
| 90 | 1 | 0 | infinite |
| 135 | 0.707 | 0.707 | -1 |
| 180 | 0 | -1 | -0 |
| 225 | -0.707 | -0.707 | -1 |
| 270 | -1 | 0 | -1 |
| 315 | -0.707 | 0.707 | -1 |
| 360 | 0 | 1 | 0 |
| fit.Summary |