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.

  • Parameters

    Returns [Monzo, Fraction]