numtheory[cfracpol] - compute simple continued fraction expansions for all real roots of a rational polynomial
|
Calling Sequence
|
|
cfracpol(pol, n)
cfracpol(pol)
|
|
Parameters
|
|
pol
|
-
|
rational polynomial
|
n
|
-
|
integer (n + 1 is the number of partial quotients)
|
|
|
|
|
Description
|
|
•
|
The cfracpol function returns simple continued fraction expansions of all real roots of a rational polynomial pol. Each expansion is given in list form with at most quotients. If the second argument n is not present, it defaults to 10.
|
•
|
The command with(numtheory,cfracpol) allows the use of the abbreviated form of this command.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
|
|
Download Help Document
Was this information helpful?