tolerance; default 1e-6 to make a nicer appearance for
pi.
Value
rat returns a character vector of string representations of
continuous fractions in the format [b0; b1, ..., b_{n-1}].rats prints the rational number and returns a numeric vector.
Details
rat generates continuous fractions, while rats prints the
the corresponding rational representation and returns the numeric values.