Ask Your Question
1

How would I Factor Polynomials over complex numbers?

asked 2014-08-30 22:20:48 -0600

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
1

answered 2014-08-31 00:56:47 -0600

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-08 19:46:24 -0600 )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-30 22:20:48 -0600

Seen: 632 times

Last updated: Aug 31 '14