First time here? Check out the FAQ!
answered 10 years ago
Something like that:
sage: f.map_coefficients(lambda p:p.polynomial().coefficients()[0]) 3*e1*e2 + 4*e2^2 - 4*e1 + 3 sage: f.map_coefficients(lambda p:p.polynomial().coefficients()[1]) -4*e1*e2 + 2*e2^2 + 2*e1 - 5