ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilMath Wrapper for mathematical operations. More...
Static Public Member Functions | |
static | _add ($left_operand, $right_operand, $scale=50) |
static | _div ($left_operand, $right_operand, $scale=50) |
static | _mod ($operand, $modulu) |
static | _mul ($left_operand, $right_operand, $scale=50) |
static | _pow ($left_operand, $right_operand, $scale=50) |
static | _sqrt ($operand, $scale=50) |
static | _sub ($left_operand, $right_operand, $scale=50) |
static | isCoprimeFraction ($numerator, $denominator) |
static | getGreatestCommonDivisor ($a, $b) |
static | setDefaultAdapter (ilMathAdapter $adapter) |
static | getDefaultAdapter () |
static | getInstance ($adapter=null) |
static | getFirstValidAdapter () |
static | __callStatic ($method, $args) |
Backward compatibility: Map all static calls to an equivalent instance method of the adapter. More... | |
Static Protected Attributes | |
static | $default_adapter = null |
Class ilMath Wrapper for mathematical operations.
Definition at line 11 of file class.ilMath.php.
|
static |
Backward compatibility: Map all static calls to an equivalent instance method of the adapter.
string | $method | |
mixed | $args |
Definition at line 202 of file class.ilMath.php.
|
static |
int | float | $left_operand | |
int | float | $right_operand | |
int | $scale |
Definition at line 24 of file class.ilMath.php.
Referenced by assFormulaQuestionVariable\getRandomValue(), assFormulaQuestionResult\isInTolerance(), and EvalMath\pfx().
|
static |
int | float | $left_operand | |
int | float | $right_operand | |
int | $scale |
Definition at line 37 of file class.ilMath.php.
Referenced by assFormulaQuestionResult\calculateFormula(), assFormulaQuestion\getBestSolution(), assFormulaQuestionVariable\getRandomValue(), assFormulaQuestionResult\getReachedPoints(), assFormulaQuestionResult\isCorrect(), assFormulaQuestionResult\isInTolerance(), EvalMath\pfx(), and assFormulaQuestionResult\suggestRange().
|
static |
int | float | $operand | |
int | float | $modulu |
Definition at line 49 of file class.ilMath.php.
|
static |
int | float | $left_operand | |
int | float | $right_operand | |
int | $scale |
Definition at line 62 of file class.ilMath.php.
Referenced by assFormulaQuestionVariable\getBaseValue(), assFormulaQuestionVariable\getRandomValue(), assFormulaQuestionResult\getRangeMaxBase(), assFormulaQuestionResult\getRangeMinBase(), assFormulaQuestionResult\getReachedPoints(), assFormulaQuestionResult\getResultInfo(), assFormulaQuestionResult\isCorrect(), assFormulaQuestionResult\isInTolerance(), EvalMath\pfx(), and assFormulaQuestionResult\suggestRange().
|
static |
int | float | $left_operand | |
int | float | $right_operand | |
int | $scale |
Definition at line 75 of file class.ilMath.php.
Referenced by assFormulaQuestionVariable\getRandomValue(), and EvalMath\pfx().
|
static |
int | float | $operand | |
int | $scale |
Definition at line 87 of file class.ilMath.php.
|
static |
int | float | $left_operand | |
int | float | $right_operand | |
int | $scale |
Definition at line 100 of file class.ilMath.php.
Referenced by assFormulaQuestionVariable\getRandomValue(), assFormulaQuestionResult\isInTolerance(), and EvalMath\pfx().
|
static |
Definition at line 139 of file class.ilMath.php.
|
static |
Definition at line 187 of file class.ilMath.php.
|
static |
mixed | $a | |
mixed | $b |
Definition at line 119 of file class.ilMath.php.
References Vendor\Package\$a, Vendor\Package\$b, and getGreatestCommonDivisor().
Referenced by getGreatestCommonDivisor(), isCoprimeFraction(), and ilMathTest\testGcd().
|
static |
null | string | $adapter |
ilMathException |
Definition at line 153 of file class.ilMath.php.
|
static |
Definition at line 107 of file class.ilMath.php.
References getGreatestCommonDivisor(), and true.
|
static |
ilMathAdapter | $adapter |
Definition at line 131 of file class.ilMath.php.
Referenced by ilMathBaseAdapterTest\setUp().
|
staticprotected |
Definition at line 16 of file class.ilMath.php.