Ask Your Question
0

To build a complex polynomial

asked 2016-01-17 13:22:11 -0500

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:

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-01-17 16:17:03 -0500

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

Stats

Asked: 2016-01-17 13:22:11 -0500

Seen: 21 times

Last updated: Jan 17 '16