#11870: Lazy fields do not support abs()
------------------------+---------------------------------------------------
   Reporter:  jdemeyer  |          Owner:  burcin    
       Type:  defect    |         Status:  new       
   Priority:  major     |      Milestone:  sage-4.7.2
  Component:  calculus  |       Keywords:            
Work_issues:            |       Upstream:  N/A       
   Reviewer:            |         Author:            
     Merged:            |   Dependencies:            
------------------------+---------------------------------------------------
 {{{
 sage: RLF(1).abs()
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 /usr/local/src/sage-4.7.2.alpha2/<ipython console> in <module>()

 /usr/local/src/sage-4.7.2.alpha2/local/lib/python2.6/site-
 packages/sage/structure/element.so in
 sage.structure.element.RingElement.abs (sage/structure/element.c:13785)()

 /usr/local/src/sage-4.7.2.alpha2/local/lib/python2.6/site-
 packages/sage/rings/real_lazy.so in
 sage.rings.real_lazy.LazyFieldElement.__getattribute__
 (sage/rings/real_lazy.c:7550)()

 /usr/local/src/sage-4.7.2.alpha2/local/lib/python2.6/site-
 packages/sage/structure/element.so in
 sage.structure.element.Element.__getattr__
 (sage/structure/element.c:2794)()

 /usr/local/src/sage-4.7.2.alpha2/local/lib/python2.6/site-
 packages/sage/structure/parent.so in
 sage.structure.parent.getattr_from_other_class
 (sage/structure/parent.c:2940)()

 /usr/local/src/sage-4.7.2.alpha2/local/lib/python2.6/site-
 packages/sage/structure/parent.so in
 sage.structure.parent.raise_attribute_error
 (sage/structure/parent.c:2709)()

 AttributeError: 'sage.rings.real_lazy.LazyWrapper' object has no attribute
 '__abs__'
 }}}

 Same for CLF.

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