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
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?