Module:Chord consistency: Difference between revisions

Dummy index (talk | contribs)
support maxlen > 72
Dummy index (talk | contribs)
+tolerance for zero error, -invalid variable
Line 119: Line 119:
for i = 1, max_n do
for i = 1, max_n do
local et = ET.parse('' .. i .. ed)
local et = ET.parse('' .. i .. ed)
local consistent = p.additively_consistent_int(et, all_interval, false, previous)
local consistent = p.additively_consistent_int(et, all_interval, false, nil)
if consistent then
if consistent then
local maxe = p.max_error(et, all_interval)
local maxe = p.max_error(et, all_interval)
if maxe <= 0.0 then
if maxe <= 5.0e-11 then
table.insert(vals, "[[" .. i .. ed .. "]]" .. "(just)")
table.insert(vals, "[[" .. i .. ed .. "]]" .. "(just)")
break
break