PiMath API
    Preparing search index...

    Interface RandomMonomConfig

    Options of rndMonom.

    interface RandomMonomConfig {
        allow?: { zero?: boolean };
        degree?: number;
        fraction?: boolean | RandomCoefficientConfig;
        variables?: string;
    }
    Index
    allow?: { zero?: boolean }

    Type Declaration

    • Optionalzero?: boolean

      Allow a zero coefficient (default false).

    degree?: number

    Total degree, a non-negative integer (default 2).

    fraction?: boolean | RandomCoefficientConfig

    Coefficient: false (default) gives an integer, true allows fractions, an object gives full control over the coefficient.

    variables?: string

    Variables of the monom, one lowercase letter each, duplicates ignored (default 'x'). With several variables, the degree is spread randomly.