#10355: containment for multivariate polynomial rings
-----------------------------------+----------------------------------------
   Reporter:  niles                |       Owner:  malb                         
      
       Type:  defect               |      Status:  new                          
      
   Priority:  major                |   Milestone:                               
      
  Component:  commutative algebra  |    Keywords:  multivariate polynomial 
containment
     Author:                       |    Upstream:  N/A                          
      
   Reviewer:                       |      Merged:                               
      
Work_issues:                       |  
-----------------------------------+----------------------------------------
 A bug in containment for multivariate polynomial rings:

 {{{
 sage: A1.<a> = PolynomialRing(QQ)
 sage: 3 in A1
 True

 sage: A2.<a,b> = PolynomialRing(QQ)
 sage: 3 in A2
 False

 sage: A1(a) in A2
 False
 }}}

 This occurs because `__contains__(self,x)` for multivariate polynomial
 rings simply tests whether the parent of `x` is `self`.  Instead, it
 should inherit `__contains__` from the class `Parent`.  Further discussion
 can be found on this [http://groups.google.com/group/sage-
 devel/browse_thread/thread/dab74506d9ff94bf sage-devel thread].

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