Open
Description
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
.
Upstream: Reported upstream. No feedback yet.
CC: @kcrisman
Component: calculus
Keywords: maxima keepfloat integration
Issue created by migration from https://trac.sagemath.org/ticket/12152