I get wrong results when I use pquadrature to compute the Fourier transform of a Gaussian, but only when abstol is set to a value other than the default value.
The commented out lines (changing the integration limits, leaving abstol to its default value and using quadgk) all give the correct result.
I get wrong results when I use
pquadrature
to compute the Fourier transform of a Gaussian, but only whenabstol
is set to a value other than the default value.The commented out lines (changing the integration limits, leaving abstol to its default value and using quadgk) all give the correct result.