First time here? Check out the FAQ!
answered 2016-01-17 23:17:03 +0100
Is that what you want?
sage: var('z') sage: p=(z-2*I)*(z+1*I) sage: p.expand() z^2 - I*z + 2