#12152: Maxima fails to properly convert some floats to rationals
------------------------+---------------------------------------------------
   Reporter:  ddrake    |          Owner:  burcin                      
       Type:  defect    |         Status:  new                         
   Priority:  major     |      Milestone:  sage-4.8                    
  Component:  calculus  |       Keywords:  maxima keepfloat integration
Work_issues:            |       Upstream:  N/A                         
   Reviewer:            |         Author:                              
     Merged:            |   Dependencies:                              
------------------------+---------------------------------------------------
 From https://groups.google.com/d/topic/sage-devel/JZ54xk51F-E/discussion :
 {{{
 sage: a, b, t = var('a b t')
 sage: f(a,b,t) = sin(t)^2/(a + b*cos(t))^2
 sage: integrate(f(3/2,1,t), (t,0,2*pi))
 -2/5*(sqrt(5) - 3)*pi*sqrt(5)
 }}}
 Works properly, but:
 {{{
 sage: integrate(f(1.5,1,t), (t,0,2*pi))
 }}}
 blows up with
 {{{
 RuntimeError: ECL says: Error executing code in Maxima: CRECIP:
 attempted inverse of zero (mod 3)
 }}}
 From the discussion there, this seems to be related to Maxima's attempts
 to convert floats to rationals, and that Sage turns off such conversion
 with `keepfloat:true`.

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