Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13116 > unrolled thread
| Started by | Alex Krasnov <akrasnov@eecs.berkeley.edu> |
|---|---|
| First post | 2013-01-12 03:22 +0000 |
| Last post | 2013-01-12 03:22 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: wrong result when computing a definite integral Alex Krasnov <akrasnov@eecs.berkeley.edu> - 2013-01-12 03:22 +0000
| From | Alex Krasnov <akrasnov@eecs.berkeley.edu> |
|---|---|
| Date | 2013-01-12 03:22 +0000 |
| Subject | Re: wrong result when computing a definite integral |
| Message-ID | <kcqku3$lpf$1@smc.vnet.net> |
Integrate takes the integration variables in prefix order, so perhaps you
meant the following:
In: Integrate[Exp[I*Sqrt[3]*y], {y, -Pi, Pi}, {x, -2*Pi, 2*Pi}]
Out: (8*Pi*Sin[Sqrt[3]*Pi])/Sqrt[3]
Alex
On Thu, 10 Jan 2013, 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.
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web