#20003: Incorrect output of squarefree_decomposition for polynomials over finite
fields
---------------------------------+------------------------
       Reporter:  lackermans     |        Owner:
           Type:  defect         |       Status:  new
       Priority:  major          |    Milestone:  sage-7.1
      Component:  factorization  |   Resolution:
       Keywords:                 |    Merged in:
        Authors:                 |    Reviewers:
Report Upstream:  N/A            |  Work issues:
         Branch:                 |       Commit:
   Dependencies:                 |     Stopgaps:
---------------------------------+------------------------
Description changed by lackermans:

Old description:

> When using squarefree_decomposition on linear polynomials over a finite
> field, an incorrect unit part is returned.
>
> {{{
> sage: K.<x> = GF(7)[]
> sage: (6*x+3).squarefree_decomposition()
> (6) * (6*x + 3)
> sage: (6*x+3).squarefree_decomposition().expand()
> x + 4
> sage: K.<x> = GF(5)[]
> sage: (2*x).squarefree_decomposition()
> (2) * 2*x
> }}}

New description:

 When using squarefree_decomposition on linear polynomials over a finite
 field, the coefficients are not divided by the unit part, resulting in an
 incorrect output.

 {{{
 sage: K.<x> = GF(7)[]
 sage: (6*x+3).squarefree_decomposition()
 (6) * (6*x + 3)
 sage: (6*x+3).squarefree_decomposition().expand()
 x + 4
 sage: K.<x> = GF(5)[]
 sage: (2*x).squarefree_decomposition()
 (2) * 2*x
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/20003#comment:1>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to