A fun, practical toolkit for exploring numerical methods—built with pure PHP for students, learners, and tinkerers.
NumPHP was born during my third semester in university, when I was diving deep into numerical analysis. While most of my peers stuck with Python or MATLAB, I took a different route — building the entire toolkit in PHP to keep things web-native and accessible.
From root-finding to integration, this project brings theory to life with clean iterations and visual outputs — perfect for students who want to see what’s happening behind the formulas.
- 📉 Step-by-step iteration output for better understanding
- 🔄 Classic methods like Bisection, Newton-Raphson, Secant, Jacobi
- 📈 Integration tools like Trapezoid & Simpson’s Rule
- 🧩 Modular structure — easy to extend and play with
- 💡 Clean and interactive web-based interface (PHP + JS + CSS)
- Frontend: HTML, CSS, JavaScript
- Backend: PHP (no frameworks)
No Python or external engines — just good ol’ PHP and math!
NumPHP/
├── index.php # Method selector and main UI
├── method-bisection.php
├── method-false-position.php
├── method-fixed-point-iteration.php
├── method-jacobi.php
├── method-newton-raphson.php
├── method-secant.php
├── method-simpson.php
├── method-trapezoid.php
├── numerical-analysis.css # Styling
└── numerical-analysis.js # Interactivity- Bisection Method
- False Position Method
- Newton-Raphson Method
- Secant Method
- Fixed-Point Iteration
- Jacobi Iteration
- Trapezoidal Rule
- Simpson’s Rule
Each method shows iterations, convergence steps, and intermediate results.
Ideal for:
- Students trying to understand how numerical methods evolve step by step
- Professors or TAs looking for a demo-ready educational tool
- Anyone curious about implementing these algorithms in PHP
MIT — open and free for learning, tweaking, and sharing.
This project was fun to build and even more fun to use. If you’re diving into numerical analysis and want a hands-on PHP playground — give NumPHP a go!
Feel free to star ⭐ the repo or share it with a fellow math nerd!