Pell's equation: Difference between revisions

Content added Content deleted
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:.C;\n\ty = \.y:.C;\n"
writeln $"x² - \.n;y² = 1 for:\n\tx = \.x:fn C;\n\ty = \.y:fn C;\n"
}
}
</syntaxhighlight>
</syntaxhighlight>