Previous Up Next

11.1.24  Truncating to order n

The truncate command truncates a polynomial; i.e., it removes higher order terms.

truncate may be used to transform a series expansion into a polynomial or to compute a series expansion step by step.

Examples

truncate((1+x+x^2/2)^3,4)
     
x4+16 x3+18 x2+12 x+4
4
          
truncate(series(sin(x)),4)
     
x3+6 x
6
          

Note that the returned polynomial is normalized.


Previous Up Next