Jump to content

Continued fraction/Arithmetic/G(matrix ng, continued fraction n1, continued fraction n2): Difference between revisions

m
Line 2,973:
procedure cf2string (cf, max_terms)
local s, i, done, term
static separators
local sep_str
 
initial {
separators := ["", ";", ","]
}
 
/max_terms := 20
Line 2,988 ⟶ 2,992:
done := YES
} else {
s ||:= ["", ";", ","]separators[min (i + 1, 3)] || term
i +:= 1
}
Line 3,097 ⟶ 3,101:
 
if /cf then {
# Generate only "infinityinfinite" terms.
source := create generate_constant (&null)
} else if type(cf) == "co-expression" then {
1,448

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.