convergs - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

convergs

print convergents of continued fraction

 Calling Sequence convergs(listA, listB, n)

Parameters

 listA - list of numbers, or a function listB - (optional) list of numbers n - (optional) integer

Description

 • The convergs function takes the continued fraction

$\mathrm{a1}+\frac{\mathrm{b2}}{\left(\mathrm{a2}+\frac{\mathrm{b3}}{\left(\mathrm{a3}+\frac{\mathrm{b4}}{\left(\mathrm{a4}+\mathrm{...}}}}$

 and prints the successive convergents in the form n, nth convergent. The function convergs returns NULL.
 • listA is of the form $[\mathrm{a1},\mathrm{a2},...]$ and similarly listB is of the form $[1,\mathrm{b2},\mathrm{b3},...]$ where $\mathrm{aI}$ and $\mathrm{bI}$ correspond to the values in the displayed continued fraction.
 • If listB is of the form $[1,1,1,...]$ convergs may be omitted.
 • If a third argument n is present, convergs indicates the number of convergents to compute.

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam