id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
12152 Maxima fails to properly convert some floats to rationals ddrake burcin "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`." defect new major sage-6.4 calculus maxima keepfloat integration kcrisman Reported upstream. No feedback yet.