#7088: factoring certain polynomials over ZZ gets all mixed up (wrong constant)
via our PARI wrapper
------------------------------+---------------------------------------------
 Reporter:  was               |       Owner:  somebody  
     Type:  defect            |      Status:  new       
 Priority:  blocker           |   Milestone:  sage-4.1.2
Component:  basic arithmetic  |    Keywords:            
 Reviewer:                    |      Author:            
   Merged:                    |  
------------------------------+---------------------------------------------
 {{{
 Hi all,

 Found this simple bug in a simple Z[x] factoring example.

 R.<x>=PolynomialRing(ZZ)
 f = 12*x^10 + x^9 + 432*x^3 + 9011
 g = 13*x^11 + 89*x^3 + 1
 F = f^2 * g^3
 G = F.factor()
 should_be_zero = F - G.prod()
 should_be_zero == 0

 The problem was that F.factor returns

 2028 * (12*x^10 + x^9 + 432*x^3 + 9011)^2 * (13*x^11 + 89*x^3 + 1)^3

 Not 1 * (12*x^10 + x^9 + 432*x^3 + 9011)^2 * (13*x^11 + 89*x^3 + 1)^3

 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7088>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to