#13133: BooleanMonomial.index() SEGFAULT on constant monomials
---------------------------------------------------------------+------------
       Reporter:  Bouillaguet                                  |         Owner: 
 malb    
           Type:  defect                                       |        Status: 
 new     
       Priority:  minor                                        |     Milestone: 
 sage-5.1
      Component:  commutative algebra                          |    Resolution: 
         
       Keywords:                                               |   Work issues: 
         
Report Upstream:  Not yet reported upstream; Will do shortly.  |     Reviewers: 
         
        Authors:  Charles Bouillaguet                          |     Merged in: 
         
   Dependencies:  polybori                                     |      Stopgaps: 
         
---------------------------------------------------------------+------------

Comment (by AlexanderDreyer):

 Confirmed, this is a bug of both Sage's interface (it should not call
 `firstIndex()` in this case) as well as upstream !PolyBoRi (it should not
 crash on inconsistent user commands). The patch solved the problem very
 well, but you should use `is_one()` instead of `degree()==0`. This
 performs better (degree() needs to count first).

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