Pell's equation: Difference between revisions

Content added Content deleted
Line 1,090: Line 1,090:
val .C = f(.x) {
val .C = f(.x) {
# format number string with commas
# format number string with commas
var .neg, .s = "", toString .x
var .neg, .s = "", string .x
if .s[1] == '-' {
if .s[1] == '-' {
.neg, .s = "-", rest .s
.neg, .s = "-", rest .s