1 | <?php |
||
5 | class ArithmeticProvider |
||
6 | { |
||
7 | |||
8 | public static function add($number1, $number2) |
||
12 | |||
13 | public static function subtract($left, $right) |
||
17 | |||
18 | public static function multiply($number1, $number2) |
||
22 | |||
23 | public static function divide($numerator, $denominator, $precision = null) |
||
27 | |||
28 | public static function pow($base, $exponent) |
||
32 | |||
33 | public static function squareRoot($number, $precision = null) |
||
37 | |||
38 | public static function modulo($number, $modulo) |
||
42 | |||
43 | public static function compare($left, $right, $scale = null) |
||
47 | |||
48 | public static function powmod($left, $right, $modulus, $scale = null) |
||
52 | |||
53 | public static function factorial($number) |
||
61 | |||
62 | } |