Pell's equation: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 1,099: | Line 1,099: | ||
for .n in [61, 109, 181, 277, 8941] { |
for .n in [61, 109, 181, 277, 8941] { |
||
val .x, .y = .solvePell(.n) |
val .x, .y = .solvePell(.n) |
||
writeln $"x² - \.n;y² = 1 for:\n\tx = \.x: |
writeln $"x² - \.n;y² = 1 for:\n\tx = \.x:fn C;\n\ty = \.y:fn C;\n" |
||
} |
} |
||
</syntaxhighlight> |
</syntaxhighlight> |