The bug can be triggered via the pexpect interface to maxima, so it probably has something to do with the things that sage preloads in maxima:
sage: maxima("integrate(sin(t)^2/(1*cos(t) + 1.5)^2,t,0,2*%pi)") TypeError: Error executing code in Maxima CODE: sage1 : integrate(sin(t)^2/(1*cos(t) + 1.5)^2,t,0,2*%pi)$ Maxima ERROR: CRECIP: attempted inverse of zero (mod 3) -- an error. To debug this try: debugmode(true); versus: sage: maxima("integrate(sin(t)^2/(1*cos(t) + 3/2)^2,t,0,2*%pi)") -2*%pi This shows that the problem does not lie in differences between library mode maxima and maxima proper (this maxima interface runs the same executable as the maxima console) The problem arises from the rational approximation that maxima tries to do resulting from 1.5. Given that the maxima console seems to do this "right", my guess would be that we turn off this rational approximation trick and that it gets triggered later, resulting in some "mod 3" computations. CRECIP has to do with finding rational approximations to floats. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org