To build a complex polynomial
For example I have this polynomiyal:
p=(z-2*I)*(z+1*I)
I want sage show me someting like:
z^2-z*(1*I)-2
It doesn't mind the number of roots.
For example I have this polynomiyal:
p=(z-2*I)*(z+1*I)
I want sage show me someting like:
z^2-z*(1*I)-2
It doesn't mind the number of roots.
Is that what you want?
sage: var('z')
sage: p=(z-2*I)*(z+1*I)
sage: p.expand()
z^2 - I*z + 2
Asked: 9 years ago
Seen: 276 times
Last updated: Jan 17 '16