Ask Your Question
0

To build a complex polynomial

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

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 23:17:03 +0100

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

Stats

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

Seen: 250 times

Last updated: Jan 17 '16