| 1 | initial version |
Just add big-O - like
f = 1+q+2*q^2+3*q^3+4*q^4+5*q^5
f += O(q^3)
will truncate f at 3rd degree.
| 2 | No.2 Revision |
Just add a suitable big-O - like
f = 1+q+2*q^2+3*q^3+4*q^4+5*q^5
f += O(q^3)
O(q^3) # truncating as a power series
f = f.polynomial() # converting back to polynomial
will truncate truncates f at 3rd degree.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.