Numerical methods in pure Python.
Documentation is available, but it might be easier to just read the code.
pip install numericals
-
Integration
- Trapezoidal Rule
- Midpoint Rule
- Simpson's Rule
- Monte Carlo
- Gaussian Quadrature
-
ODE
- Euler's Method
- Heun's Method
- Runge-Kutta 4
-
Optimization
- Golden Section Search
-
Root-finding
- Bisection Method
- Secant Method
- Newton's Method
- Regula Falsi
- Illinois Algorithm
python -m pytest tests
Copyright (C) 2026 Andrew Yoo
Numericals is free software. You may redistribute or modify it under the terms of the GNU Lesser General Public License: feel free to choose either version 3.0 or a later one.
You should have received a copy of the GNU LGPL along with this program, located in the LICENSE file. If not, see http://www.gnu.org/licenses/lgpl.