[sage-support] Re: Error with integrate

2015-11-19 Thread Dima Pasechnik
On Thursday, 19 November 2015 15:41:37 UTC, Matt Rissler wrote: > > integrate(x^(3-1)*(1-x)*(3-1),x,0,1) > > Why is this returning 1/6 and not 1/30? > > well you can check by hand that it is 1/6, for you are integrating a polynomial 2*x^2-2*x^3 the antiderivative is 2*(x^3/3-x^4/4), and you get

[sage-support] Re: Error with integrate

2015-11-19 Thread Matt Rissler
Thanks for debugging my code. Should have been (1-x)^(3-1). I'm blaming that on having a one-week old at home. On Thursday, November 19, 2015 at 10:31:10 AM UTC-6, Dima Pasechnik wrote: > > > > On Thursday, 19 November 2015 15:41:37 UTC, Matt Rissler wrote: >> >>

[sage-support] Re: Error in integrate

2012-04-14 Thread achrzesz
On Saturday, April 14, 2012 6:04:44 PM UTC+2, Laurent Decreusefond wrote: Dear all, here is my problem sage: var('t') t sage: integrate(e^(-2*t)/sqrt(1-e^(-2*t)),t,0,infinity) -1 ... a negative value for the integral of a positive function. On the other hand sage: