In Maple, taylor(exp(x),x,2);
returns 1+x+O(x2). How can I automatically convert this result to the same expression with the O(x2) terms removed? I.e. something like removeBigO(taylor(exp(x),x,2));
to return 1+x?"
Asked
Active
Viewed 1,741 times
5

Douglas B. Staple
- 10,510
- 8
- 31
- 58
1 Answers
5
P := taylor(exp(x),x,2);
convert(P, polynom);
That conversion has its own help-page.
Note also that the help page for taylor,details has such a conversion as its last example. And the help page for taylor mentions that conversion of a Taylor series result to a polynomial is described on that details page.

acer
- 6,671
- 15
- 15
-
I looked through the convert help-page but somehow I missed it (on the convert help page, the convert/polynom example is still there, but further down than on the page you linked). Thanks! – Douglas B. Staple Apr 18 '13 at 11:27