User:ArrowHead294/Purely consistent EDOs by odd limit/Appendix: Difference between revisions
ArrowHead294 (talk | contribs) m Updated version, optimising so I don't have to call the error function all the time |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 156: | Line 156: | ||
for (let j = 1; ; j++) | for (let j = 1; ; j++) | ||
{ | { | ||
let t = j * a; t -= Math.floor(t); | let t = j * a; | ||
t -= Math.floor(t); | |||
if (!jm && t < L) | if (!jm && t < L) | ||
{ | { | ||
| Line 175: | Line 176: | ||
while (x >= L) | while (x >= L) | ||
{ | { | ||
N++; x += a - 1; | N++; | ||
x += a - 1; | |||
if (x >= 1) | if (x >= 1) | ||
{ | { | ||