Re: [sage-devel] integral_numerical(log(x), 0, 0)

2011-11-17 Thread Jeroen Demeyer
I implemented this at #12047. While I was at it, I also cleaned up the documentation and added numerical integration to the reference manual. Please review: http://trac.sagemath.org/sage_trac/ticket/12047 -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from

Re: [sage-devel] integral_numerical(log(x), 0, 0)

2011-11-08 Thread William Stein
On Tue, Nov 8, 2011 at 12:22 PM, Jeroen Demeyer wrote: > On 2011-11-08 19:35, William Stein wrote: >> In this case, dirac_delta is actually a distribution.  It >> is defined as the distribution with the property that >> >>  integral(dirac_delta, a, b) >> >> is 0 if the interval [a,b] does not cont

Re: [sage-devel] integral_numerical(log(x), 0, 0)

2011-11-08 Thread Jeroen Demeyer
On 2011-11-08 19:35, William Stein wrote: > In this case, dirac_delta is actually a distribution. It > is defined as the distribution with the property that > > integral(dirac_delta, a, b) > > is 0 if the interval [a,b] does not contain 0, and is 1 if the > interval [a,b] does contain 0. Not qu

Re: [sage-devel] integral_numerical(log(x), 0, 0)

2011-11-08 Thread Jeroen Demeyer
On 2011-11-08 19:35, William Stein wrote: > Right now we get a TypeError when trying to evaluate the above, which > is unfortunate too, but at least it's an error rather than a totally > wrong answer. With your patch, probably Sage would silently produce > a wrong answer. Yes it would always prod

Re: [sage-devel] integral_numerical(log(x), 0, 0)

2011-11-08 Thread William Stein
On Tue, Nov 8, 2011 at 5:24 AM, Jeroen Demeyer wrote: > Currently, in sage-4.7.2: > > sage: integral_numerical(log(x), 0, 0) > (nan, nan) > > Mathematically, the integral should certainly be zero: there is a > primitive function which is continuous and defined at 0.  Symbolically, > we can compute