CoCoA:CFApproximants

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)

CFApproximants

continued fractions

Description

CFApproximants returns a list of all continued fraction approximants

              to a specified rational

Example

  CFApproximants(1.414213);
[1, 3/2, 7/5, 17/12, 41/29, 99/70, 239/169, 577/408, 816/577, 1393/985,
 6388/4517, 7781/5502, 14169/10019, 21950/15521, 36119/25540, 58069/41061,
 152257/107662, 210326/148723, 1414213/1000000]
-------------------------------

Syntax

CFApproximants(X:RAT): LIST of INT and RAT

CFApprox

ContFrac

   <type>rat</type>