Module:Infobox ET: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 9: | Line 9: | ||
-- towards is one of: -1 (floor), 0 (nearest), 1 (ceil) | -- towards is one of: -1 (floor), 0 (nearest), 1 (ceil) | ||
local function approximation(et, interval, towards, precomputed_approx) | local function approximation(et, interval, towards, precomputed_approx) | ||
local approx = ET.approximate(et, interval, towards or 0) | local approx = precomputed_approx or ET.approximate(et, interval, towards or 0) | ||
local tuning = et.size | local tuning = et.size | ||
if not rat.eq(et.equave, 2) then | if not rat.eq(et.equave, 2) then | ||