Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14218 > unrolled thread
| Started by | Niles <niels.martinsen@gmail.com> |
|---|---|
| First post | 2013-04-17 06:30 +0000 |
| Last post | 2013-04-17 06:30 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Principal Values and NIntegrate Niles <niels.martinsen@gmail.com> - 2013-04-17 06:30 +0000
| From | Niles <niels.martinsen@gmail.com> |
|---|---|
| Date | 2013-04-17 06:30 +0000 |
| Subject | Principal Values and NIntegrate |
| Message-ID | <kklfhk$7pc$1@smc.vnet.net> |
I am fiddling around with Kramers-Kronig relations, and for that I need to use the Principal Value. I have the following notebook (shown at the end), where I take the dispersion "disp" and from that find the absorption using the Kramers-Kronig relation.
When I compare the resulting absorption to the analytical expression "abs", I see that the widths of are not the same after normalizing - which they should be. Is there a setting/parameter I am missing?
\[CapitalGamma] = 50 10^3;
disp[\[CapitalDelta]_] :=
1/\[Pi] \[CapitalDelta]/(\[CapitalDelta]^2 + (\[CapitalGamma]/(4 \
\[Pi]))^2/4);
abs[\[CapitalDelta]_] :=
1/\[Pi] (\[CapitalGamma]/(4 \[Pi]))/(\[CapitalDelta]^2 + (\
\[CapitalGamma]/(4 \[Pi]))^2);
absKK[\[CapitalDelta]_] := -NIntegrate[disp[x]/(
x - \[CapitalDelta]), {x, -Infinity, \[CapitalDelta], Infinity},
Method -> PrincipalValue, Exclusions -> Automatic,
MaxRecursion -> 100] // Quiet;
max = \[CapitalGamma];
step = 100;
absVals = {}; dispVals = {};
For[i = -step, i < step + 1, i++,
\[Delta] = max*i/step;
absVals = Append[absVals, {\[Delta], absKK[\[Delta]]}]];
Show[
ListLinePlot[absVals, PlotRange -> Full, PlotStyle -> {Red, Dashed}],
Plot[-6.5 abs[\[CapitalDelta]], {\[CapitalDelta], -\[CapitalGamma], \
\[CapitalGamma]}, PlotRange -> Full]]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web