Module:Infobox ET: Difference between revisions
Category: Zeta -> Category: Zeta record EDOs |
Suppress convergence notice for 1ed's since it's often confusing |
||
| Line 15: | Line 15: | ||
local approx = precomputed_approx or ET.approximate(et, interval, towards or 0) | local approx = precomputed_approx or ET.approximate(et, interval, towards or 0) | ||
-- string for backslash notation | |||
-- "edo" is omitted | |||
local tuning = et.size | local tuning = et.size | ||
if not rat.eq(et.equave, 2) then | if not rat.eq(et.equave, 2) then | ||
| Line 22: | Line 24: | ||
local ratio = rat.new(approx, et.size) | local ratio = rat.new(approx, et.size) | ||
-- convergence notice, suppressed for 1ed's | |||
local convergement_notice = "" | local convergement_notice = "" | ||
local converges = rat.converges(ratio, math.log(interval) / math.log(rat.as_float(et.equave))) | local converges = rat.converges(ratio, math.log(interval) / math.log(rat.as_float(et.equave))) | ||
if converges then | if et.size > 1 and converges then | ||
convergement_notice = "<br | convergement_notice = "<br>(" .. converges .. ")" | ||
end | end | ||