#7377: Symbolic Ring to Maxima via EclObject
-----------------------------------------------------------------------+----
   Reporter:  nbruin                                                   |       
Owner:  nbruin      
       Type:  enhancement                                              |      
Status:  needs_work  
   Priority:  major                                                    |   
Milestone:  sage-feature
  Component:  symbolics                                                |    
Keywords:              
     Author:  Nils Bruin, Jean-Pierre Flori                            |    
Upstream:  N/A         
   Reviewer:  Jean-Pierre Flori, François Bissey, Karl-Dieter Crisman  |      
Merged:              
Work_issues:                                                           |  
-----------------------------------------------------------------------+----

Comment(by nbruin):

 Turns out the rounding errors weren't really that. Rather, max_to_sr
 preferred to return floats rather than RealDoubleElement, which are
 apparently the sage default type for float, and these print differently:
 {{{
 sage: var('x,y')
 (x, y)
 sage: assume(y>1)
 sage: M=sage.calculus.calculus.maxima
 sage: I1=SR(M("integrate(log(x^2+y^2),x,0.0001414,1.0)"))
 sage: I2=integrate(log(x^2+y^2),x,0.0001414,1.0)
 sage: c1=I1.operands()[2].operands()[1].pyobject()
 sage: c2=I2.operands()[2].operands()[1].pyobject()
 sage: [c1,c2]
 [-0.0001414, -0.00014139999999999999]
 sage: [type(c1),type(c2)]
 [<type 'sage.rings.real_double.RealDoubleElement'>, <type 'float'>]
 }}}
 Patch attached. That means that the __only__ doctest failures now are due
 to the fact that "maxima asks a question" gets reported via a different
 error. Ready for review?

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