simple continued fraction expansions for real roots of a rational polynomial
ContinuedFractionPolynomial(p, n, root = rootopt)
ContinuedFractionPolynomial(p, root = rootopt)
polynomial with rational or real floating point coefficients
root = rootopt
(optional) keyword argument where rootopt is a root of p
The ContinuedFractionPolynomial(p, n) command computes simple continued fraction expansions for the real roots of p, up to the nth term.
For ContinuedFractionPolynomial(p), the simple continued fraction expansions for the real roots of p are calculated up to the 10th term.
If rootopt is not given, then an expansion for each real root is returned. If rootopt is given, then only the expansion for rootopt is returned.
ContinuedFractionPolynomial(x^4 - x^3 - 4*x^2 + 4*x + 1, 20);
ContinuedFractionPolynomial(x^2-2, root = sqrt(2));
The NumberTheory[ContinuedFractionPolynomial] command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
Download Help Document
What kind of issue would you like to report? (Optional)