SpaceTime.  Scientific computing in the palm of your hand.
 Home  Manual  Share  Forums  Support 
spacetime32  
Catalog  | 
 | 
       PDF Manual       
 

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

Algebra
Apart, Coefficient, Degree, Denominator, Divisors, DivisorSigma, Eval, Expand, Factor, GCD, LCM, PolyDivide, PolyFit, PolyGCD, PolyLCM, PowerExpand, 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
Append, Call, Caps, Char, Choose, Clear, Command, Date, Delete, Extract, Function, Insert, IsList, IsMatrix, IsNumber, IsPoly, Left, Length, List, Matrix, Part, Replace, Reshape, Reverse, Right, 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, Strings, Symbols, Time Graphing

Matrix
Cholesky, coFactor, 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, DiLog, 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, RK4, RK45, 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



About SpaceTime   iPhone Apps   iPad Apps   Mac Apps   Follow Us
SpaceTime is also available for  
Pocket PC Windows Mobile
,   
Smartphone Windows Smartphone
  and  
Palm Palm OS 5.
Copyright © 2010 Pomegranate Software.  All rights reserved.