#13053: wrong sign in square-free decomposition of polynomials over ZZ
---------------------------------------+--------------------------
       Reporter:  saraedum             |        Owner:  tbd
           Type:  defect               |       Status:  needs_info
       Priority:  major                |    Milestone:  sage-6.2
      Component:  factorization        |   Resolution:
       Keywords:  sd40.5 FLINT NTL ZZ  |    Merged in:
        Authors:                       |    Reviewers:
Report Upstream:  N/A                  |  Work issues:
         Branch:                       |       Commit:
   Dependencies:                       |     Stopgaps:
---------------------------------------+--------------------------

Comment (by rws):

 FWIW in Mathematica, `FactorTermsList[-x^2, x]` results in `{-1, 1, x^2}`
 (where the first is the content), despite the definition in
 http://mathworld.wolfram.com/Content.html

 "(1) The content of an integer polynomial P in Z[x], denoted  cont(P), is
 the largest integer k>=1 such that  P/k also has integer coefficients. (2)
 Gauss's lemma for contents states that if P and Q are two polynomials with
 integer coefficients, then cont(PQ)=cont(P)cont(Q) (Séroul 2000, p. 287)."

 Note that while the Mathematica output violates (1) it still satisfies
 (2).

--
Ticket URL: <http://trac.sagemath.org/ticket/13053#comment:8>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to