A collection of numerical methods implemented from first principles and applied to engineering problems, with NumPy/SciPy/Matplotlib used for verification, data handling, and visualization.
The objective is to demonstrate numerical engineering reasoning rather than simply calling library functions. Core algorithms are implemented directly, then exercised on practical examples and checked against analytical or expected results.
- bisection
- Newton-Raphson
- secant method
- composite trapezoidal rule
- composite Simpson's rule
- classical fourth-order Runge-Kutta (RK4)
- linear least-squares fitting
- coefficient of determination (
R²)
- nonlinear spring equilibrium solved with three root-finding methods
- Newton's law of cooling solved by RK4 and checked against the analytical solution
- load-cell style sensor calibration using linear least squares
python -m venv .venv
# Windows: .venv\Scripts\activate
# Linux/macOS: source .venv/bin/activate
pip install -e . pytest
python examples/root_finding_comparison.py
python examples/cooling_ode.py
python examples/sensor_calibration.py
pytest -q- root-finding algorithms with convergence information
- numerical integration
- RK4 ODE solver
- least-squares calibration
- three engineering examples
- automated tests and cross-platform CI
- interpolation and spline methods
- finite-difference differentiation
- optimization methods
- eigenvalue problems
- FFT and signal-processing examples
- uncertainty propagation and Monte Carlo analysis

