truncate takes as argument, a polynomial and an integer
n.
truncate truncates this polynomial at order n (removing
all terms of order greater or equal to n+1).
truncate may be used to transform a series expansion into a
polynomial or to compute a series expansion step by step.
Input :
^
2/2)^
3,4)Output :
^
4+16*x^
3+18*x^
2+12*x+4)/4Input :
Output :
^
3-(-6)*x)/6Note that the returned polynomial is normalized.