Skip to content Skip to sidebar Skip to footer
Showing posts with the label Numerical Methods

Using Scipy.quad With Iε Trick: Bad Results

In order to circumvent the cauchy principle value, I tried to integrate an integral using a small s… Read more Using Scipy.quad With Iε Trick: Bad Results

Differentiate A 2d Cubic Spline In Python

I'm using interpolate.interp2d() to fit a 2-D spline over a function. How can I get the first d… Read more Differentiate A 2d Cubic Spline In Python

Efficiently Compute Inverse Fourier Transform

The following code was suggested in the very nice answer to this question here. My question about i… Read more Efficiently Compute Inverse Fourier Transform

How To Improve This Adaptive Trapezoidal Rule?

I have attempted an exercise from the computational physics written by Newman and written the follo… Read more How To Improve This Adaptive Trapezoidal Rule?

Numerical Integration Methods Question Python

I am trying to integrate the following formula: Below is my attempt to perform this integration us… Read more Numerical Integration Methods Question Python