Module:Interval table: Difference between revisions
CompactStar (talk | contribs) This is the final adjustment probably |
CompactStar (talk | contribs) No edit summary |
||
| Line 136: | Line 136: | ||
-- Go through all ratios, if they are mapped to the current step in the ET's patent val with <1/3 relative error, add to approximate ratios column | -- Go through all ratios, if they are mapped to the current step in the ET's patent val with <1/3 relative 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) | ||
relative_error = math.abs(t - math. | relative_error = math.abs(t - math.log(ratios_list[j][1]/ratios_list[j][2])/math.log(et.equave^(1/et.size))) | ||
if t == i and relative_error < 1/3 then | if t == i and relative_error < 1/3 then | ||
wikitext = wikitext .. '[[' .. ratios_list[j][1] .. '/' .. ratios_list[j][2] .. ']], ' | wikitext = wikitext .. '[[' .. ratios_list[j][1] .. '/' .. ratios_list[j][2] .. ']], ' | ||