#13202: conversion problems in BooleanPolynomialRing with degrevlex order
---------------------------------------------------------+------------------
Reporter: Bouillaguet | Owner: malb
Type: defect | Status:
needs_review
Priority: major | Milestone:
sage-5.2
Component: commutative algebra | Resolution:
Keywords: conversion | Work issues:
Report Upstream: N/A | Reviewers:
Martin Albrecht
Authors: Alexander Dreyer, Charles Bouillaguet | Merged in:
Dependencies: | Stopgaps:
---------------------------------------------------------+------------------
Comment (by Bouillaguet):
Still, there is something relatively annoying :
{{{
sage: R.<x,y,z> = BooleanPolynomialRing(order='degrevlex')
sage: m = x # a random monomial
sage: x.lm().index() # the index of the first variable of m, most people
would expect "0"
2
sage: R.gen(2)
z
}}}
And in fact, to make it shorter:
{{{
sage: R.gen(0) == R.gen( R.gen(0).lm().index() )
False
}}}
While this is not a bug in itself, it is disturbing, and it has caused at
least one problem in my code. Fixing the .index() function would in any
case break Alexander's patch. If I understand correctly, his patch relies
on this "feature"
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13202#comment:10>
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.