Recent changes to 335: gfactor(2) wrong (no Gaussian integer factorization)http://sourceforge.net/p/maxima/bugs/335/Recent changes to 335: gfactor(2) wrong (no Gaussian integer factorization)enThu, 03 Jul 2003 18:26:14 -0000gfactor(2) wrong (no Gaussian integer factorization)http://sourceforge.net/p/maxima/bugs/335/gfactor\(2\) =&gt; 2; similarly for gfactor\(5\), etc.
Correct result is \(1+%i\)\*\(1-%i\) etc.
Same thing for factor\(2,q^2+1\) -- but note that
factorization isn't necessarily unique in this case, e.g.
factor\(6,q^2+5\)=2\*3=\(1+q\)\*\(1-q\).
This appears to be a documentation bug \(although it
would be nice to handle gaussian integer factorization\).
Factorization of integers is special-cased in the code,
but there is no special case for factorization of gaussian
integers. There do exist simple algorithms for this.
Perhaps I'll implement one someday....
Maxima 5.9.0Stavros MacrakisThu, 03 Jul 2003 18:26:14 -0000http://sourceforge.net1799a4849ef567ae2ce751d157a63b64647e5d7a