Module:Interval table: Difference between revisions

CompactStar (talk | contribs)
No edit summary
CompactStar (talk | contribs)
No edit summary
Line 117: Line 117:
-- Go through all ratios, if they are mapped to the current step in the ET's patent val and <50 cents error, add to approximate ratios column
-- Go through all ratios, if they are mapped to the current step in the ET's patent val and <50 cents error, add to approximate ratios column
t = mapping(u.get_monzo(ratios_list[j][1], ratios_list[j][2]), patent_val)
t = mapping(u.get_monzo(ratios_list[j][1], ratios_list[j][2]), patent_val)
if t == i and math.abs(ET.cents(et, i) - u.logb(ratios_list[j][1]/ratios_list[j][2], 2) * 1200) < 50 then
if t == i and math.abs(ET.cents(et, i) - u._logb(ratios_list[j][1]/ratios_list[j][2], 2) * 1200) < 50 then
wikitext = wikitext .. '[[' .. ratios_list[j][1] .. '/' .. ratios_list[j][2] .. ']], '
wikitext = wikitext .. '[[' .. ratios_list[j][1] .. '/' .. ratios_list[j][2] .. ']], '
end
end