Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is this a known bug with integral()

I've tried to compute the following integral wth integral() in a SageMathCloud worksheet: $\displaystyle \int_{-\pi/6}^{\pi/6}\frac{\cos x}{1+\sin x}dx$.

The output was an error message (saying the integral is divergent), just like the one I got in SageMathCell (see link):

So I tried with integrate() and with numerical_integral() as well. I was never able to obtain the value of this integral, which turns out to be $\ln(3)$ after an obvious substitution.

Is this a bug?

Note that replacing 1 by 1.1 yields this:

while we get that when replacing 1 by 2: