MMO\math
MMO\math · 19 symboles · générée le 27 Oct 2026
binomialCoefficient
functions.php:189Compute the binomial coefficient $n! / ($k! * ($n - $k)!)
- Espace de noms
MMO\math
Graphe d'appels
Utilise (1)
Utilisé par (1)
bisection
functions.php:203Find a root of a continuous function (fn(x) = 0) using the bisection method
- Espace de noms
MMO\math- Voir
https://www.geeksforgeeks.org/dsa/program-for-bisection-method/ WARNING: this only determine ONE solution of all the possible solutions
compare
functions.php:76Compare two values
- Espace de noms
MMO\math
Graphe d'appels
Utilise (1)
divide
functions.php:138- Espace de noms
MMO\math
Graphe d'appels
Utilise (1)
factorial
functions.php:176Do factorial of $n n! = n * (n-1) * (n-2) * ........ * 1
- Espace de noms
MMO\math
Graphe d'appels
Utilisé par (1)
isNumber
functions.php:44Test if a value is a float, int or iNumber
- Espace de noms
MMO\math
loopValues
functions.php:255Get the numbers a value stands for (used by max, min and size) Plain numbers and set iNumber yield their value, an unset iNumber yields nothing, an iDomain (Interval, Domain) yields its limit (start and end, open bounds included as their limit) and any other IteratorAggregate is walked
- Espace de noms
MMO\math
| $value | iNumber | IteratorAggregate | int | float | |
| retourne | Generator | int|float |
Graphe d'appels
Utilise (2)
Utilisé par (3)
max
functions.php:284Get the maximum value of a list of numbers (iNumber included)
- Espace de noms
MMO\math
| ...$values | iNumber | IteratorAggregate | int | float | |
| retourne | int | float | null | null if no value is known |
Graphe d'appels
Utilise (1)
Utilisé par (1)
min
functions.php:303Get the minimum value of a list of numbers (iNumber included)
- Espace de noms
MMO\math
| ...$values | iNumber | IteratorAggregate | int | float | |
| retourne | int | float | null | null if no value is known |
Graphe d'appels
Utilise (1)
Utilisé par (1)
minus
functions.php:95- Espace de noms
MMO\math
Graphe d'appels
multiply
functions.php:112Multiply any number (iNumber included) by a factor
- Espace de noms
MMO\math
Graphe d'appels
Utilise (1)
number
functions.php:56Convert any value to a number (int|float)
- Espace de noms
MMO\math
| $value | mixed | if a string, the value is parsed and it returns an int if it can or a float. if iNumber, it returns its value |
| $convertNumber = true | bool | if false and it is a iNumber, null is returned |
| $ignoreUnits = true | bool | if false and the number has units, null is returned |
| retourne | int | float | null | if null, the value cannot be converted to a number |
operatorRegex
functions.php:353Get a regular expression used to tokenize a math expression (used by parse)
- Espace de noms
MMO\math
| retourne | string |
Graphe d'appels
Utilisé par (1)
parse
functions.php:380Tokenize a mathematical expression
- Espace de noms
MMO\math
| $exp | array | string | the mathematical expression |
| $variableFactory = null | null | callable | function($name): ?iNumber. $name is the name of the variable without '$'. If it returns null, a Number is created |
| $customOperators = [] | array | the custom operators in front of parenthesis (like xxx(..,..)) where xxx is the operator |
| $vars = [] | array | |
| retourne | iNumber | string |
Graphe d'appels
Utilise (3)
Utilisé par (2)
plus
functions.php:84- Espace de noms
MMO\math
Graphe d'appels
power
functions.php:160- Espace de noms
MMO\math
Graphe d'appels
Utilise (1)
roundScale
functions.php:23Round value to the closest power of ten
- Espace de noms
MMO\math
| $value | int | float | |
| $scale = 0 | int | if < 0, it is a numeral precision. ex: -1 => precise to 0.1, -3 => 0.001 if > 0, it is rounded to the closest value. ex: 2 => rounded to 100. 0 => 1, 6 => 1 000 000 |
| $roundUp = null | null | bool | |
| retourne | float |
Graphe d'appels
scale
functions.php:34Get the power of ten the given value is precise to
- Espace de noms
MMO\math
Graphe d'appels
Utilisé par (1)
size
functions.php:323Get the number of values in the given values
- Espace de noms
MMO\math
| ...$values | iNumber | IteratorAggregate | int | float | |
| retourne | int | float | INF if a value holds a range of numbers |