xen-dev-utils
    Preparing search index...

    Function toMonzoAndResidual

    • Extract the exponents of the prime factors of a rational number.

      Parameters

      • n: bigint

        Rational number to convert to a monzo.

      • numberOfComponents: number

        Number of components in the result.

      Returns [Monzo, bigint]

      The monzo representing n and a multiplicative residue that cannot be represented in the given limit.

    • Extract the exponents of the prime factors of a rational number.

      Parameters

      • n: FractionValue

        Rational number to convert to a monzo.

      • numberOfComponents: number

        Number of components in the result.

      Returns [Monzo, Fraction]

      The monzo representing n and a multiplicative residue that cannot be represented in the given limit.