Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14218

Principal Values and NIntegrate

From Niles <niels.martinsen@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Principal Values and NIntegrate
Date 2013-04-17 06:30 +0000
Message-ID <kklfhk$7pc$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Principal Values and NIntegrate Niles <niels.martinsen@gmail.com> - 2013-04-17 06:30 +0000

csiph-web