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