Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13088 > unrolled thread
| Started by | Dexter Filmore <liquid.phynix@gmail.com> |
|---|---|
| First post | 2013-01-11 02:38 +0000 |
| Last post | 2013-01-12 03:24 +0000 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
wrong result when computing a definite integral Dexter Filmore <liquid.phynix@gmail.com> - 2013-01-11 02:38 +0000
Re: wrong result when computing a definite integral "Kevin J. McCann" <kjm@KevinMcCann.com> - 2013-01-12 03:22 +0000
Re: wrong result when computing a definite integral danl@wolfram.com - 2013-01-12 03:23 +0000
Re: wrong result when computing a definite integral DC <b.gatessucks@gmail.com> - 2013-01-12 03:24 +0000
| From | Dexter Filmore <liquid.phynix@gmail.com> |
|---|---|
| Date | 2013-01-11 02:38 +0000 |
| Subject | wrong result when computing a definite integral |
| Message-ID | <kcntuu$f8f$1@smc.vnet.net> |
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.
[toc] | [next] | [standalone]
| From | "Kevin J. McCann" <kjm@KevinMcCann.com> |
|---|---|
| Date | 2013-01-12 03:22 +0000 |
| Message-ID | <kcqku9$lpm$1@smc.vnet.net> |
| In reply to | #13088 |
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.
>
[toc] | [prev] | [next] | [standalone]
| From | danl@wolfram.com |
|---|---|
| Date | 2013-01-12 03:23 +0000 |
| Message-ID | <kcqkve$lqf$1@smc.vnet.net> |
| In reply to | #13088 |
On Thursday, January 10, 2013 8:38:22 PM UTC-6, 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.
Thank you for the example. I reported this as a bug. I apologize for any inconvenience it may have caused.
Daniel Lichtblau
Wolfram Research
[toc] | [prev] | [next] | [standalone]
| From | DC <b.gatessucks@gmail.com> |
|---|---|
| Date | 2013-01-12 03:24 +0000 |
| Message-ID | <kcql0o$lrh$1@smc.vnet.net> |
| In reply to | #13088 |
Just 2 observations :
Integrate[Exp[a y], {x, -2 Pi, 2 Pi}, {y, -Pi, Pi}] works;
Integrate[Exp[I Sqrt[3] y], {y, -Pi, Pi}, {x, -2 Pi, 2 Pi}] works.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web