Module:Rational: Revision history

From Xenharmonic Reference

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

16 December 2025

  • curprev 05:0105:01, 16 December 2025 Vector talk contribs 33,201 bytes +33,201 Created page with "local p = {} local seq = require("Module:Sequence") local utils = require("Module:Utils") -- enter a numerator n and denominator m -- returns a table of prime factors -- similar to a monzo, but the indices are prime numbers. function p.new(n, m) m = m or 1 if n == 0 and m == 0 then return { nan = true } elseif n == 0 then return { zero = true, sign = utils.signum(m) } elseif m == 0 then return { inf = true, sign = utils.signum(n) } end local sign = utils.s..."