System
MMO\math\helpers · 1 symbol · generated 30 Sep 2026
Represents a set of equations for which a common solution is looked for.
class MMO\math\helpers\System
implements ArrayAccess,
Countable,
Stringable- Namespace
MMO\math\helpers- Implements
- ArrayAccess, Countable, Stringable
Properties3
protected array $content = []- Type
- array
SplObjectStorage $numbers- Type
- SplObjectStorage
protected array $operators = []- Type
- array
Methods14
function add(
MMO\math\helpers\Number|MMO\math\interfaces\iOperation|string $exp,
int $weight = 1
): selffunction addOperator(string $symbol, MMO\math\interfaces\iOperator $operator): voidfunction count(): intfunction getNumber(string $name, bool $create = false): ?MMO\math\helpers\Numberfunction getPolynome(MMO\math\helpers\Number|string $number, int $index): MMO\math\helpers\Polynomefunction getVariablesComplexity(): arrayfunction offsetExists(mixed $offset): boolfunction offsetGet(mixed $offset): mixedfunction offsetSet(mixed $offset, mixed $value): voidfunction offsetUnset(mixed $offset): voidfunction removeOperator(MMO\math\interfaces\iOperator|string $operator): boolfunction solve()| returns | | array<mixed, float>> each variable's candidate values and their score (not implemented yet: throws) |
function __construct(array|string $operations = [], array $operators = [])function __toString(): string