Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10965
| From | Niles <niels.martinsen@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Evaluating complicated integral numerically |
| Date | 2012-07-18 05:39 +0000 |
| Message-ID | <ju5i6e$3rk$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
Hi
I am trying to evaluate a complicated integral numerically, but when my limits are > +/-5, then Mathematica fails:
ClearAll["Global`*"]
sigma = 1;
gaussian[x_, y_, z_] :=
1/(Sqrt[2 \[Pi]] \[Sigma])^3 Exp[-((x^2 + y^2 + z^2)/(2 sigma^2))];
gamma = 10^4;
lorentzian[f_, f0_] := gamma/(2 \[Pi]) 1/((f - f0)^2 + gamma^2/4);
f = 1000;
NIntegrate[
lorentzian[ f, Sqrt[x^2 + y^2 + 4 z^2]]*gaussian[x, y, z] Sqrt[
x^2 + y^2]/Sqrt[x^2 + y^2 + 4 z^2],
{x, -500, 500},
{y, -500, 500},
{z, -500, 500}]
I don't see what goes wrong here? Is it really true that NIntegrate can't handle this?!
Thanks in advance.
Best,
Niles.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Evaluating complicated integral numerically Niles <niels.martinsen@gmail.com> - 2012-07-18 05:39 +0000
csiph-web