OptionalallowOptionalcommonFactor?: booleanAllow a common factor between the integer coefficients (default true).
OptionalnegativeLeading?: booleanAllow a negative leading coefficient (default false).
OptionaldegreeDegree, a non-negative integer (default 1).
OptionalfactorableBuild the equation from a product of factors, so that its solutions are controlled (default false).
OptionalfractionCoefficients: false (default) gives integers, true fractions, an object gives full control.
OptionalshuffleAdd a random polynom to both sides: P = 0 becomes P + Q = Q (default false).
OptionalsolutionOptionalallowZero?: booleanAllow 0 as a solution (default true). It lives in solution rather than in allow: it constrains the
solutions of the equation, not its coefficients.
Optionalcount?: numberExact number of distinct real solutions, from 0 to degree. Implies a factored construction (default: unset, the number is free).
Optionaleverything?: number | booleanEquation true for every value: true, false (default), or a probability between 0 and 1.
Optionalnothing?: number | booleanEquation without solution: true, false (default), or a probability between 0 and 1.
Optionalrange?: RandomRangeInterval of the solutions, and of the constant added by nothing (default 5, i.e. [-5, 5]): a number
d means [-|d|, |d|], {min, max} gives explicit bounds. Fractional solutions follow the fraction
configuration, within this interval.
Optionalrelative?: booleanForce integer solutions of either sign, like relative for a fraction (default false).
OptionalunitForce a leading coefficient equal to 1 (default false).
OptionalvariablesVariables of the equation, one lowercase letter each (default 'x').
Options of
rndEquation.