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
  
Convergents(n, [mode=0], [terms])
n
Real number or [numerator, denominator] of a real number or [continued fraction] of a real number

[mode=0]
mode = 0 returns the maximum number of convergents SpaceTime can calculate. The result is displayed in a matrix with the top row = numerator and the bottom row = denominator of the convergent.
mode = 1 returns the same as above, but the result is displayed as a fraction (less accurate compared to above...)
mode = -1 returns only the largest convergent it can find with both numerator and denominator < 15 digits

[terms]
Number of convergents to return (default = maximum, and limited by machine precision)

The Convergent of a given number or a given continued fraction is the rational number obtained by keeping only a limited number of terms in the continued fraction (or the continued fraction of the number).

Examples  





References
http://mathworld.wolfram.com/Convergent.html

Related Functions
cFrac, 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.