Numerical first derivative using different methods
I numerically computed the first derivative of the following function at interior points using different methods, in an uniform grid of points. Also, I found the average of the absolute error of the predicted first derivative for all the interior points, providing the best prediction.
- Piecewise quadratic spline functions that represent the function
- 1st order forward scheme
- 2nd central difference
- Padé approximation
Plot of results for each approach along with the exact solution.
Categories: Academics
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Recent Comments