Ask Your Question

To build a complex polynomial

asked 2016-01-17 20:22:11 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

For example I have this polynomiyal:


I want sage show me someting like:


It doesn't mind the number of roots.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-01-17 23:17:03 +0200

vdelecroix gravatar image

Is that what you want?

sage: var('z')
sage: p=(z-2*I)*(z+1*I)
sage: p.expand()
z^2 - I*z + 2
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-01-17 20:22:11 +0200

Seen: 194 times

Last updated: Jan 17 '16