convert a simple periodical continued fraction expansion to a quadratic surd - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Group Theory : Number Theory : numtheory/invcfrac

numtheory[invcfrac] - convert a simple periodical continued fraction expansion to a quadratic surd

Calling Sequence

invcfrac(cf)

Parameters

cf

-

simple periodical continued fraction expansion with its pre-period and period (in either list or fraction form)

Description

• 

The invcfrac function returns a quadratic surd which has a simple periodical continued fraction expansion cf.

• 

This function is part of the numtheory package, and so can be used in the form invcfrac(..) only after performing the command with(numtheory). The function can always be accessed in the long form numtheory[invcfrac](..).

Examples

withnumtheory:

f:=cfrac3112,periodic

f:=5+11+11+13+15+13+11+11+110+11+11+13+15+13+11+11+110+...

(1)

invcfracf

31

(2)

g:=cfrac35+2912,periodic,quotients

g:=5,1,66,2,2,5,10,1,1,2,2,3,2,1,1,1,268,1,1,1,2,3,2,2,1,1,10,5,2,2,66,1,9,1,3,1,1,1,8,1,1,1,3,1,9

(3)

invcfracg

35+29

(4)

See Also

numtheory, numtheory[cfrac], numtheory[nthconver]


Download Help Document

Was this information helpful?



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