Re: wrong result when computing a definite integral

• To: mathgroup at smc.vnet.net
• Subject: [mg129406] Re: wrong result when computing a definite integral
• From: "Kevin J. McCann" <kjm at KevinMcCann.com>
• Date: Fri, 11 Jan 2013 22:23:04 -0500 (EST)
• Delivered-to: l-mathgroup@mail-archive0.wolfram.com
• Delivered-to: l-mathgroup@wolfram.com
• Delivered-to: mathgroup-newout@smc.vnet.net
• Delivered-to: mathgroup-newsend@smc.vnet.net
• References: <kcntuu\$f8f\$1@smc.vnet.net>

```Well that is disturbing. If you put parens around the inner (y)
integral, it works correctly. Also, the separate individual integrals
work fine. I cannot figure out why this should be.

Kevin

On 1/10/2013 9:38 PM, Dexter Filmore wrote:
> hi group,
>
> i run into this problem today when giving a bunch of easy integrals to mathematica.
> here's a wolfram alpha link to the problem:
> http://www.wolframalpha.com/input/?i=Integrate%5BExp%5BI+Sqrt%5B3%5Dy%5D%2C%7Bx%2C-2Pi%2C2Pi%7D%2C%7By%2C-Pi%2CPi%7D%5D#
>
> the integrand does not depend on the 'x' variable, the inner integration should only result in a factor of 4Pi, and the correct result is a real number, yet the below integral gives a complex number which is far off from the correct value:
> Integrate[Exp[I Sqrt[3] y], {x, -2 Pi, 2 Pi}, {y, -Pi, Pi}] -> -((4 I (-1 + E^(2 I Sqrt[3] Pi)) Pi)/Sqrt[3])
>
> from some trial and error it seems the result is also incorrect for non-integer factors in the exponential.
>

```

• Prev by Date: Re: wrong result when computing a definite integral
• Next by Date: Re: List:{1}, {2,3},{4,5,6}....
• Previous by thread: Re: wrong result when computing a definite integral
• Next by thread: Re: wrong result when computing a definite integral