#13903: polynomial .reduce returns type int over p-adic field
-------------------------------------+--------------------------------------
       Reporter:  bhutz              |         Owner:  AlexGhitza
           Type:  defect             |        Status:  new       
       Priority:  minor              |     Milestone:  sage-5.6  
      Component:  algebra            |    Resolution:            
       Keywords:  polynomial reduce  |   Work issues:            
Report Upstream:  N/A                |     Reviewers:            
        Authors:  Ben Hutz           |     Merged in:            
   Dependencies:                     |      Stopgaps:            
-------------------------------------+--------------------------------------

Old description:

> The .reduce() function for a polynomial ring can return an 'int' type
> when the base field is a p-adic field.
>
> {{{
> R.<y1,y2>=PolynomialRing(Qp(5),2, order='lex') G=[y1^2^ + y2^2^, y1*y2 +
> y2^2^, y2^3^] type((y2^3^).reduce(G))
> }}}
> It should be returning an element of the polynomial ring.
>
> This was noticed since it causes .variety() to fail.
>
> {{{
> R.<y1,y2>=PolynomialRing(Qp(5),2, order='lex') G=[y1^2^ + y2^2^, y1*y2 +
> y2^2^, y2^3^]
> I=ideal(G)
> I.variety()
> }}}
> Some discussion at: https://groups.google.com/forum/?fromgroups=#!topic
> /sage-support/Ar7z2b5cOic

New description:

 The .reduce() function for a polynomial ring can return an 'int' type when
 the base field is a p-adic field.

 {{{
 R.<y1,y2>=PolynomialRing(Qp(5),2, order='lex')
 G=[y1^2 + y2^2, y1*y2 + y2^2, y2^3]
 type((y2^3).reduce(G))
 }}}
 It should be returning an element of the polynomial ring.

 This was noticed since it causes .variety() to fail.

 {{{
 R.<y1,y2>=PolynomialRing(Qp(5),2, order='lex')
 G=[y1^2 + y2^2, y1*y2 + y2^2, y2^3]
 I=ideal(G)
 I.variety()
 }}}
 Some discussion at: https://groups.google.com/forum/?fromgroups=#!topic
 /sage-support/Ar7z2b5cOic

--

Comment (by john_perry):

 And promptly broke them, as well. (It '''looked''' good before I hit
 submit, honest!) Okay, I'll try again...

 I can work on this, if no one else has their heart set on it.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13903#comment:2>
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