CoCoA:ContFrac

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ContFrac

continued fractions denominators

Description

ContFrac returns a list of the continued fraction denominators

for a given rational number.

Example

  ContFrac(1.414213);
[1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 4, 1, 1, 1, 1, 1, 2, 1, 6]
-------------------------------

Syntax

ContFrac(X:RAT):LIST of INT

CFApprox

CFApproximants

ContFracToRat

   <type>rat</type>