Function respell

  • Respell a monzo represting a rational number to a simpler form.

    Parameters

    • monzo: Monzo

      Array of prime exponents to simplify.

    • commas: Monzo[]

      Monzos representing near-unisons to simplify by. Should be LLL reduced to work properly.

    • Optional commaOrthoDuals: Monzo[]

      Optional precalculated geometric duals of the orthogonalized comma basis.

    Returns Monzo

    An array of prime exponents representing a simpler rational number.