CoCoA:CFApprox

From ApCoCoAWiki

CFApprox

continued fractions

Description

CFApprox finds the simplest rational approximation within a

              maximum specified relative error.

Example

  CFApprox(1.414213, 10^(-2));
17/12
-------------------------------

Syntax

CFApprox(X:RAT, Prec:RAT): RAT

CFApproximants

ContFrac

   <type>rat</type>