login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #254 <code>factor$AN</code> doesn't factor $x^2-2$ revision 1 of 2

1 2
Editor: test1
Time: 2015/06/19 15:42:37 GMT+0
Note:

changed:
-
I think that this is also a bug:
\begin{axiom}
factor(x^2-2::POLY AN)
\end{axiom}

I'd expect $(x-\sqrt{2})(x+\sqrt{2})$.

In fact, over algebraic numbers (and over Expression)
'factor' if specified to factor over a subfield generated
by coefficients of the polynomial.  More precisely, 'factor'
only uses kernels present in the coefficients and will not
introduce new roots.  OTOH 'split' will build appropriate
extension.

Submitted by : (unknown) at: 2007-11-17T22:15:50-08:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

I think that this is also a bug:

fricas
factor(x^2-2::POLY AN)

\label{eq1}{{x}^{2}}- 2(1)
Type: Factored(Polynomial(AlgebraicNumber?))

I'd expect (x-\sqrt{2})(x+\sqrt{2}).

In fact, over algebraic numbers (and over Expression) factor if specified to factor over a subfield generated by coefficients of the polynomial. More precisely, factor only uses kernels present in the coefficients and will not introduce new roots. OTOH split will build appropriate extension.