Polynome
MMO\math\helpers · 1 symbol · generated 27 Oct 2026
Represents a polynome made of one or more variable
class MMO\math\helpers\Polynome
implements Stringable- Namespace
MMO\math\helpers- Implements
- Stringable
Properties2
MMO\math\helpers\Number $number- Type
- Number
array $powers = []- Type
- array
Methods18
function add(MMO\math\helpers\UnitVector|MMO\math\helpers\Units|int|float $unit): voidfunction degree(): intfunction divideBy(
MMO\math\operations\ArithmeticOperation|MMO\math\helpers\Number|MMO\math\helpers\UnitVector|self|int|float $poly
): selfstatic function From(
MMO\math\helpers\Number $number,
MMO\math\helpers\Number|int|float $value
): selffunction getContent(): arrayfunction getVector(
int $power,
MMO\math\interfaces\iUnit|MMO\math\helpers\UnitVector|self|string $units,
bool $checkPower = true
): MMO\math\helpers\UnitVector|MMO\math\helpers\Units|nullTells if polynome only has one variable
function isSimple(): boolfunction loopNumbers(): Generatorfunction minus(MMO\math\operations\ArithmeticOperation|self|int|float $poly): selffunction multiplyBy(
MMO\math\operations\ArithmeticOperation|MMO\math\helpers\Number|MMO\math\helpers\UnitVector|self|int|float $poly
): selffunction plus(MMO\math\operations\ArithmeticOperation|self|int|float $poly): selffunction powerBy(int $power): selffunction solve(): arrayfunction toNumber(): MMO\math\operations\ArithmeticOperation|MMO\math\helpers\Number|floatfunction __clone()function __construct(
MMO\math\helpers\Number $number,
MMO\math\operations\ArithmeticOperation|self|null $poly = null
)function __toString(): string