First time here? Check out the FAQ!
answered 2014-08-25 12:26:18 +0100
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