Functions Used in the Book "Computational Physics with R"
Backward differences
Linear shooting method for second-order linear BVPs
Solves a second-order BVP using the shooting method
Determinant of a square matrix
Degree of best-interpolating polynomial
First derivative for an irregular grid
First derivative on a regular grid
Divided differences
Sturm–Liouville eigenproblem with homogeneous Dirichlet boundary condi...
Euler method for systems of ODEs
Forward differences
Gaussian Elimination
Numerical integration using -point Gaussian quadrature.
The Gauss-Seidel algorithm
Heun method for systems of ODEs
Ill-conditioned sampling
1D linear interpolation
LU decomposition
Neville-Aitken algorithm for polynomial interpolation
Numerical integration using the trapezoid or simpson's rule
Parity of a permutation
The Jacobi method
Approximating polynomial for divided differences
Polynomial Least Squares
Runge-Kutta 4th order method for systems of ODEs
Bisection method for roots
Newton method for roots
Secant method for roots
Tridiagonal linear system
Multilinear Least Squares
Transform to upper triangular
Find optimal polynomial model
Provides a collection of functions described and used in the book Foadi (2026, ISBN:9780750326308) "Computational Physics with R". These include routines for numerical differentiation, integration, differential equations, eigenvalue problems, Monte Carlo methods, and other algorithms relevant to computational physics.