procedure Sqrt: rational approximate to square root procedure rat2cf: continued fraction sequence for rational procedure cfapprox: continued-fraction approximation procedure dec2rat: convert repeating decimal to rational procedure rat2dec: decimal expansion of rational procedure repeater: find repeat in sequence procedure seqimage: sequence image
link periodic
June 10, 2001; Ralph E. Griswold
Requires: Large-integer arithmetic
This file is in the public domain.
Sqrt(i, j) produces a rational approximation to the square root of i with j iterations of the half-way method. j defaults to 5.