image image image  
Free Educational iPhone Apps.  Available on the App Store.
SpaceTime 4.0.  Math software for computers and mobile devices.
 Home  Manual  Graphbook  Buy  Members  Forums  Support 
Pi Day Sale!  SpaceTime is only $31.41 for today on 3/14
spacetime32  
Catalog  | 
 | 
      
 

Number
AlternatingSeries, Catalan, cFrac, Convergents, LegendreP, nFactors, nPrimes, Pi_Digits, Random

Algebra
Apart, Coefficient, Degree, Denominator, Divisors, DivisorSigma, Eval, Expand, Factor, GCD, LCM, PolyDivide, PolyFit, PolyGCD, PolyLCM, Quotient, Remainder, Sequence, SimplifyPoly, Solve, SolveSystem, Together

Basic
Abs, Arg, Conj, Exp, Hyperbolic Functions, Im, Ln, Log, Re, Trigonometric Functions

Calculus
D, Diff, DSolve, fDiff, FourierCos, FourierSeries, FourierSin, iDiff, iLaplace, Integrate, Laplace, Limit, NIntegrate, pDiff, Product, Series, Sum

CAS
Call, Caps, Char, Choose, Clear, Date, Delete, Extract, Function, Insert, Left, List, Matrix, Part, Replace, Reverse, Size, Sort, String, Value, Variables

Data
Constant, Finance, HRStoHMS, LoadList, LoadMatrix, Table

Elementary
Binomial, Ceil, Eulerian, Factorial, Floor, fPart, iPart, Mod, Multinomial, nCr, nPr, nRoot, Pochhammer, Round, Sign, Sqrt

Graphing
clip, FullRectSineWave, HalfRectSineWave, SawToothWave, SquareWave, StaircaseWave, TriangleWave

Manual
Code Files, Commands, Creating Scripts, Entering Expressions, Graphing Equations, Include Folder, Lists, Matrices, Right, Strings, Symbols, Time Graphing

Matrix
Cholesky, Det, Eigenvalues, Eigenvectors, Identity, Inverse, LUDecomposition, QR, RowReduce, SVD, Transpose

Plot
BodePlot, ContourPlot, CylindricalPlot3D, FractalPlot, ImagePlot, ImplicitPlot, JuliaPlot, ListPlot, ListPlot3D, MultiPlot, MultiPlot3D, ParametricPlot, ParametricPlot3D, Plot, Plot3D, PolarPlot, SphericalPlot3D, VectorPlot, VectorPlot3D

Scripting
Animate, CheckBox, Draw, DrawColor, DrawWindow, Else If, Error, If, Include, Loop, Message, Scroll, Trace, While

Special
AiryAi, AiryBi, BesselI, BesselJ, BesselK, BesselY, Beta, Chi, Ci, Dawson, DiGamma, Dirichlet_Eta, Dirichlet_Lambda, Ei, Erf, Erfc, FresnelCos, FresnelSin, Gamma, Gudermannian, HankelH1, HankelH2, Harmonic, Hypergeom_2F1, invGudermannian, KelvinBei, KelvinBer, KelvinKei, KelvinKer, LambertW, Li, LnGamma, PolyGamma, PolyLog, Psi, Shi, Si, Zeta

Special Polynomials
Bernoulli, ChebyshevT, ChebyshevU, Euler, Fibonacci, GegenbauerC, HermiteH, LaguerreL, LegendreQ, Lucas

Statistical
BinomialCDF, BinomialPDF, ChiSquareCDF, ChiSquarePDF, Fcdf, Fpdf, GeoCDF, GeoPDF, InverseNormal, Max, Mean, Min, NormalCDF, NormalPDF, PoissonCDF, PoissonPDF, StandardDeviation, StudentTCDF, StudentTPDF, Variance

Trigonometric
DEGtoDMS, ExpConvert, TrigCollect, TrigConvert, TrigExpand, TrigReduce

Vector Calculus
Angle, Cross, Curl, Divergence, Dot, Duf, Gradient, Hessian, Jacobian, Laplacian, Norm, SurfaceNormal

  
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.

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 © 2010 Pomegranate Software.  All rights reserved.

Smartphone Smartphone
      
Palm Palm OS 5
      
Newsletter Newsletter

About Us   SpaceTime Newsletter   Follow SpaceTimeUs   Windows Mobile   RSS Feed