Say that I have a polynomial ring
R.<a,b,c>=PolynomialRing(QQ)
How do a get the part of a polynomial P where the sum of degree in a,b, and c are less than a given number N? If P were a univariate polynomial, this could be done with P[:N].
Thank you in advance!