ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 10 Feb 2019 04:12:46 +0100why gives a wrong result?https://ask.sagemath.org/question/45245/why-gives-a-wrong-result/ integrate(sqrt(2+sin(x)^2),x)Thu, 31 Jan 2019 15:33:53 +0100https://ask.sagemath.org/question/45245/why-gives-a-wrong-result/Answer by Emmanuel Charpentier for <p>integrate(sqrt(2+sin(x)^2),x)</p>
https://ask.sagemath.org/question/45245/why-gives-a-wrong-result/?answer=45246#post-id-45246Problem similar to [this previous question](https://ask.sagemath.org/question/44077/indefinite-integral-is-incorrect/), which generated the bug report [Trac#26563](https://trac.sagemath.org/ticket/26563).
BTW, you should try to create questions a bit less err... [elliptic](http://doc.sagemath.org/html/en/reference/functions/sage/functions/special.html) (pun not intended but kept...). Your question is more a riddle than a question...Thu, 31 Jan 2019 16:11:41 +0100https://ask.sagemath.org/question/45245/why-gives-a-wrong-result/?answer=45246#post-id-45246Comment by GGuasp for <p>Problem similar to <a href="https://ask.sagemath.org/question/44077/indefinite-integral-is-incorrect/">this previous question</a>, which generated the bug report <a href="https://trac.sagemath.org/ticket/26563">Trac#26563</a>.</p>
<p>BTW, you should try to create questions a bit less err... <a href="http://doc.sagemath.org/html/en/reference/functions/sage/functions/special.html">elliptic</a> (pun not intended but kept...). Your question is more a riddle than a question...</p>
https://ask.sagemath.org/question/45245/why-gives-a-wrong-result/?comment=45303#post-id-45303I know the track. And the question has been placed bearing in mind that the error is already known.
But the true question is: does anyone know what is the problem in the pipe between SageMath and Maxima that produces this type of "obviously" incorrect results?
What are the types of integrals that are known to suffer from this problem?
With this information I can try to avoid the problem (in fact, teach my students). Not fixing the problem (I do not know enough about the involved algorithms/programation) but retouching the math to get a more "friendly" (or hard enough) expression to work.Mon, 04 Feb 2019 16:56:45 +0100https://ask.sagemath.org/question/45245/why-gives-a-wrong-result/?comment=45303#post-id-45303Comment by brianko for <p>Problem similar to <a href="https://ask.sagemath.org/question/44077/indefinite-integral-is-incorrect/">this previous question</a>, which generated the bug report <a href="https://trac.sagemath.org/ticket/26563">Trac#26563</a>.</p>
<p>BTW, you should try to create questions a bit less err... <a href="http://doc.sagemath.org/html/en/reference/functions/sage/functions/special.html">elliptic</a> (pun not intended but kept...). Your question is more a riddle than a question...</p>
https://ask.sagemath.org/question/45245/why-gives-a-wrong-result/?comment=45407#post-id-45407Here's another one that doesn't integrate correctly:
integrate(sqrt(1+cos(x)^2),x,0,pi)
This doesn't work either:
integrate(sqrt(1+cos(x)^2),x,0,pi,algorithm='sympy')Sun, 10 Feb 2019 04:12:46 +0100https://ask.sagemath.org/question/45245/why-gives-a-wrong-result/?comment=45407#post-id-45407