Module:Interval table: Difference between revisions
CompactStar (talk | contribs) No edit summary |
CompactStar (talk | contribs) No edit summary |
||
| Line 134: | Line 134: | ||
wikitext = wikitext .. '|' | wikitext = wikitext .. '|' | ||
for j=1,#ratios_list do | for j=1,#ratios_list do | ||
-- Go through all ratios, if they are mapped to the current step in the ET's patent val | -- Go through all ratios, if they are mapped consistently to the current step in the ET's patent val, 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) | ||
direct_approx = ET.approximate(et, ratios_list[j][1]/ratios_list[j][2]) | |||
if t == i and t == direct_approx then | |||
wikitext = wikitext .. '[[' .. ratios_list[j][1] .. '/' .. ratios_list[j][2] .. ']], ' | wikitext = wikitext .. '[[' .. ratios_list[j][1] .. '/' .. ratios_list[j][2] .. ']], ' | ||
end | end | ||