up previous next
CFApprox --
continued fraction approximation
|
CFApprox(X: RAT, MaxRelErr: RAT): RAT |
CFApprox finds the
simplest continued fraction approximant
to
X which is within the maximum specified
relative error.
/**/ CFApprox(1.414213, 10^(-2));
17/12
|