Ask Your Question
1

How would I Factor Polynomials over complex numbers?

asked 10 years ago

this post is marked as community wiki

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

Ok, I was in sage attempting some factoring of polynomials:

x^2-4 gave: (x-2)(x+2)

x^2-2 gave: x^2-2

how would i get this in (x-a)(x+a) for x^2 -a^2 when x,a are complex?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 10 years ago

rws gravatar image

Use polynomials over the complex ring CC:

sage: R.<x> = CC[]
sage: p=x^2+2
sage: p.factor()
(x - 1.41421356237310*I) * (x + 1.41421356237310*I)
Preview: (hide)
link

Comments

1

okay i got what i wanted now how would i get it as symbolic (like sqrt(-2) instead of 1.4142135...)

Chernoxyl gravatar imageChernoxyl ( 10 years ago )

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 10 years ago

Seen: 2,003 times

Last updated: Aug 31 '14