On 2014-11-12, Johannes Lippmann <johannes.lippm...@googlemail.com> wrote:

> *symbolic way*
> (I think this is wrong)
>
> sage: N(integral(1/log(x)^2,(x,2,3)))
> *0.536566859259958*

Hmm, I can't reproduce this problem. I am working w/ Maxima 5.34.1.

  (%i1) display2d : false $
  (%i2) foo : 1/log(x)^2 $
  (%i3) integrate (foo, x, 2, 3);
  (%o3) gamma_incomplete(-1,-log(3))-gamma_incomplete(-1,-log(2))
  (%i4) %, numer;
  (%o4) 1.273097216447114
  (%i5) integrate (foo, x);
  (%o5) gamma_incomplete(-1,-log(x))
  (%i6) ev (%, x=3) - ev (%, x=2);
  (%o6) gamma_incomplete(-1,-log(3))-gamma_incomplete(-1,-log(2))
  (%i7) %, numer;
  (%o7) 1.273097216447114
  (%i8) quad_qags (foo, x, 2, 3);
  (%o8) [1.273097216447114,1.413421842285782E-14,21,0]
  
Looks like Maxima handles the definite and indefinite integrals as
expected. Or perhaps I have misunderstood the problem?

Hope this helps,

Robert Dodier

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to