#13903: polynomial .reduce returns type int over p-adic field
-------------------------------------+--------------------------------------
Reporter: bhutz | Owner: AlexGhitza
Type: defect | Status: positive_review
Priority: minor | Milestone: sage-5.6
Component: algebra | Resolution:
Keywords: polynomial reduce | Work issues:
Report Upstream: N/A | Reviewers: Karl-Dieter Crisman
Authors: John Perry | Merged in:
Dependencies: | Stopgaps:
-------------------------------------+--------------------------------------
Changes (by {'newvalue': u'John Perry', 'oldvalue': ''}):
* status: needs_review => positive_review
* reviewer: => Karl-Dieter Crisman
* author: => John Perry
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
>
> '''Apply''':
>
> * [attachment:trac_13903.patch]
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
'''Apply''':
* [attachment:trac_13903-reviewed.patch]
--
Comment:
Patchbot, apply trac_13903-reviewed.patch
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13903#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 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.