up previous next
CFApproximants    --    continued fraction approximants


Syntax
CFApproximants(X: RAT): LIST of RAT

Description
CFApproximants returns a list of all continued fraction approximants to the rational X .

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]

See Also