Module:Interval table: Difference between revisions
CompactStar (talk | contribs) No edit summary |
CompactStar (talk | contribs) No edit summary |
||
| Line 12: | Line 12: | ||
for j=1,max_nd do | for j=1,max_nd do | ||
if (i/j) >= 1 and (i/j) <= max_size then | if (i/j) >= 1 and (i/j) <= max_size then | ||
ratios[#ratios + 1] = {i,j} | ratios[#ratios + 1] = {i/u.gcd(i,j),j/u.gcd(i,j)} | ||
end | end | ||
end | end | ||