ArithmeticOperation
MMO\math\operations · 1 symbol · generated 30 Sep 2026
ArithmeticOperation
ArithmeticOperation.php:12- Namespace
MMO\math\operations- Extends
- Operation
- Implements
- iFactorableNumber
Index
| divideBy($factor) | ||
| loopPolynomialUnits() | Yield Number and their polynomial factors. | |
| multiplyBy($factor) | ||
| powerBy($power) | ||
| simplify() | NOT needed, all the simplification/expansion are done in the parser | |
| toPolynome($number) | ||
| __construct($operator, $a, $b) |
Methods7
divideBy($factor)
ArithmeticOperation.php:82loopPolynomialUnits()
ArithmeticOperation.php:189Yield Number and their polynomial factors.
| returns | Generator |
multiplyBy($factor)
ArithmeticOperation.php:59powerBy($power)
ArithmeticOperation.php:44simplify()
ArithmeticOperation.php:113NOT needed, all the simplification/expansion are done in the parser
toPolynome($number)
ArithmeticOperation.php:174__construct($operator, $a, $b)
ArithmeticOperation.php:13Inherited members (32)
| Methods | Declared by | Description | |
|---|---|---|---|
addListener($callable, $target) | Operation | ||
canCommute() | Operation | ||
canInverseEquality() | Operation | ||
clear() | Operation | Empty the underlying content, keeping the object itself. | |
commute() | Operation | ||
compareTo($value) | Operation | ||
contains($num) | Operation | Test if operation contains the number or an instance of it | |
count() | Operation | \Countable::count | |
debugName() | Operation | ||
execute() | Operation | ||
extract($num, $result) | Operation | ||
getIterator() | Operation | \IteratorAggregate::getIterator | |
getOperator() | Operation | ||
hasUnits() | Operation | ||
intervals() | Operation | ||
inverseEquality($value) | Operation | ||
isEmpty() | Operation | ||
jsonSerialize() | Operation | \JsonSerializable::jsonSerialize -- the raw content is returned as-is (not recursively converted), so json_encode() relies on any nested iArray values being JsonSerializable themselves. | |
keys() | Operation | ||
loadArray($data) | Operation | Load every entry of a plain array into the content, through offsetSet (so any offsetSet() override defined by the class using this trait, e.g. | |
loopNumber() | Operation | ||
numberValue() | Operation | ||
offsetExists($key) | Operation | \ArrayAccess::offsetExists | |
offsetGet($key) | Operation | \ArrayAccess::offsetGet | |
offsetSet($key, $value) | Operation | \ArrayAccess::offsetSet -- a null $key appends ($bag[] = $value), like a plain PHP array. | |
offsetUnset($key) | Operation | \ArrayAccess::offsetUnset -- on a list (sequential integer keys, as produced by $bag[] = ...), the element is spliced out (closing the gap and reindexing), matching \unset() semantics on a plain … | |
removeListener($callable) | Operation | ||
toArray() | Operation | Convert the content to a plain array, recursively converting any nested iArray value (e.g. | |
units() | Operation | Get the units of this operation. | |
__toString() | Operation |