Ask Your Question
1

How would I Factor Polynomials over complex numbers?

asked 2014-08-31 05:20:48 +0100

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-08-31 07:56:47 +0100

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)
edit flag offensive delete link more

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 ( 2014-09-09 02:46:24 +0100 )edit

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: 2014-08-31 05:20:48 +0100

Seen: 1,926 times

Last updated: Aug 31 '14