Module:Limits: Difference between revisions

Plumtree (talk | contribs)
Further optimisations & a bugfix for non-EDOs
Plumtree (talk | contribs)
mNo edit summary
Line 116: Line 116:
-- `distinct`: whether distinct ratios are required to be mapped to distinct approximations
-- `distinct`: whether distinct ratios are required to be mapped to distinct approximations
function p.consistency_limit(size, equave, distinct, max_n)
function p.consistency_limit(size, equave, distinct, max_n)
if size == 0 then
-- the answer is known already
return '∞'
end
max_n = max_n or 1/0
max_n = max_n or 1/0
equave = equave or 2
equave = equave or 2