MathStudio  Blog  Share  Manual  Forums  Support  Sign In 
      
      
 
       Download Manual

Space Space Space
NUMBER

ALGEBRA

BASIC

CALCULUS

CAS

DATA

ELEMENTARY

GRAPHING

MANUAL

MATRIX

PLOT

SCRIPTING

SPECIAL

SPECIAL POLYNOMIALS

STATISTICAL

TRIGONOMETRIC

VECTOR CALCULUS
  CFrac(n, [terms])
n
Real number or [numerator, denominator]

[terms]
Maximum number of terms to return. If terms is not given, then returns the maximum terms it can calculate up to machine precision.


Description
Calculates the simple continued fraction representation of the given number n.

The result is given as a list, where the first term equals the constant term (a0) and the others the fraction terms (a1, a2, a3, ...).

n = a0 + 1/( a1 + 1/ (a2 + 1/(a3 + .... )))


Examples  







References
http://mathworld.wolfram.com/ContinuedFraction.html
http://en.wikipedia.org/wiki/Continued_fraction

Related Functions
Convergents, AlternatingSeries





Copyright © 2012 Pomegranate Software.  All rights reserved.