Another integration issue



Another integration issue from the ODE testsuite.

With 5.9.3 (and before) I have

(%i1) display2d:false;                               
(%o1) false
(%i2) integrand:sin(x)*%e^(log(sin(x)^2-1)/2)/cos(x);
(%o2) sin(x)*%e^(log(sin(x)^2-1)/2)/cos(x)
(%i3) integral:integrate(integrand,x);
(%o3) -sqrt(sin(x)^2-1)
(%i4) diff(integral,x)-integrand;
(%o4) -sin(x)*%e^(log(sin(x)^2-1)/2)/cos(x)-cos(x)*sin(x)/sqrt(sin(x)^2-1)
(%i5) radcan(%);
(%o5) -(sin(x)^3+(cos(x)^2-1)*sin(x))/(cos(x)*sqrt(sin(x)-1)*sqrt(sin(x)+1))
(%i6) trigsimp(%);
(%o6) 0

With recent CVS maxima the integral has changed sign.

(%i1) display2d:false;  
(%o1) false
(%i2) integrand:sin(x)*%e^(log(sin(x)^2-1)/2)/cos(x);
(%o2) sin(x)*%e^(log(sin(x)^2-1)/2)/cos(x)
(%i3) integral:integrate(integrand,x);
(%o3) sqrt(sin(x)^2-1)
(%i4) diff(integral,x)-integrand;
(%o4) cos(x)*sin(x)/sqrt(sin(x)^2-1)-sin(x)*%e^(log(sin(x)^2-1)/2)/cos(x)
(%i5) radcan(%);
(%o5) -(sin(x)^3+(-cos(x)^2-1)*sin(x))/(cos(x)*sqrt(sin(x)-1)*sqrt(sin(x)+1))
(%i6) trigsimp(%);
(%o6) 2*cos(x)*sin(x)/(sqrt(sin(x)-1)*sqrt(sin(x)+1))


NOTICE
This e-mail and any attachments are private and confidential and may contain privileged information. If you are not an authorised recipient, the copying or distribution of this e-mail and any attachments is prohibited and you must not read, print or act in reliance on this e-mail or attachments.
This notice should not be removed.