Module:Q-odd-limit intervals: Difference between revisions
Update (generate monzo lists instead of hard coding) |
gcd no longer needs to be defined here |
||
| Line 22: | Line 22: | ||
end | end | ||
return t | return t | ||
end | end | ||
| Line 91: | Line 83: | ||
for num = 1, limit, 2 do | for num = 1, limit, 2 do | ||
for den = 1, num, 2 do | for den = 1, num, 2 do | ||
if | if utils._gcd (num, den) == 1 then | ||
ratio = ratio_8ve_reduction ({num = num, den = den}) | ratio = ratio_8ve_reduction ({num = num, den = den}) | ||
table.insert (monzo_list, ratio2monzo (ratio, subgroup)) | table.insert (monzo_list, ratio2monzo (ratio, subgroup)) | ||