Ask Your Question
0

To build a complex polynomial

asked 9 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 9 years ago

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
Preview: (hide)
link

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: 9 years ago

Seen: 276 times

Last updated: Jan 17 '16