I'm interested in numerically solving a "highly-oscillatory" function. I've tried increasing the "max-recursion" and "precisiongoal", but it appears as though my answer is still not converging to the correct behavior.
nm = 10^-9;
um = 10^-6;
mm = 10^-3;
cm = 10^-2;
GHz = 10^9;
THz = 10^12;
MHz = 10^6;
cavityLength = 62 mm;
T = Tmax/(
1 + (2 F/π)^2 Sin[2 n 2 π/λ L/2]^2) /. { n -> 2,
F -> 300, Tmax -> 1};
Tν = T /. {λ -> 10^8/ν, L -> cavityLength}
StartingFreq = 10^8/λ /. λ -> 795 nm;
FreqSpan = 10 THz;
spdcRANGE = 4 THz;
Plot[(Tν /. ν -> 10 MHz + ν)*
PDF[NormalDistribution[StartingFreq, spdcRANGE], ν], {ν,
StartingFreq - 10 GHz, StartingFreq + 10 GHz }, PlotRange -> All,
Mesh -> All, PlotPoints -> 10000]
Plot[Tν*
PDF[NormalDistribution[StartingFreq, spdcRANGE], ν], {ν,
StartingFreq - 10 THz, StartingFreq + 10 THz }, PlotRange -> All,
Mesh -> All, PlotPoints -> 100000]
Plot[NIntegrate[(Tν /. ν -> SHIFT + ν)*
PDF[NormalDistribution[StartingFreq, spdcRANGE], ν], {ν,
StartingFreq - 10 THz, StartingFreq + 10 THz },
Method -> "GlobalAdaptive", MaxRecursion -> 80,
PrecisionGoal -> 24], {SHIFT, 0, 500 MHz}, PlotPoints -> 200 ,
Mesh -> All, MaxRecursion -> 0]
Any ideas on what can be done? Should I just keep increasing these numbers until it works?
THz
$\endgroup$