Re: [sage-devel] Re: Complex numerical integration

2010-11-09 Thread David Kirkby
On 9 November 2010 08:25, David Kirkby wrote: > IMHO, it would be sensible to make that the default method, which is > what happens in Mathematica's NIntegrate command. You don't need to > specify Nintegrate to return both the real and imaginary parts - it > does that automatically. In this case,

Re: [sage-devel] Re: Complex numerical integration

2010-11-09 Thread David Kirkby
On 14 October 2010 22:40, Oscar Lazo wrote: > > > On Oct 14, 4:54 am, Johan Grönqvist wrote: >> A workaround seems to be to integrate the real and imaginary parts >> separately: >> >> sage: numerical_integral(real(sqrt(sec(x)-1)),pi/2, pi) >> (1.9175999157365625e-16, 5.0010185963949996e-17) >> sa

Re: [sage-devel] Re: Complex numerical integration

2010-11-08 Thread Robert Bradshaw
+1, I've had to do that manually myself before. On Oct 14, 2010 2:40 PM, "Oscar Lazo" wrote: On Oct 14, 4:54 am, Johan Grönqvist wrote: > A workaround seems to be ... I think it would be enough to add an option to numerical_integral on the likes of: sage: numerical_integral(sqrt(sec(x)-1),pi