Skip to content

Explore numerical methods implemented in PHP for solving equations and integrals. Enhance your understanding of numerical analysis techniques.

License

Notifications You must be signed in to change notification settings

rezasadid753/numphp

Repository files navigation

🧮 NumPHP – Numerical Analysis Tools in PHP

A fun, practical toolkit for exploring numerical methods—built with pure PHP for students, learners, and tinkerers.

🚀 About

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.


🔧 Features

  • 📉 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)

🛠️ Built With

  • Frontend: HTML, CSS, JavaScript
  • Backend: PHP (no frameworks)

No Python or external engines — just good ol’ PHP and math!


📁 Project Structure

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

🧪 Methods Included

  • 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.


🎯 Use Case

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

📜 License

MIT — open and free for learning, tweaking, and sharing.


💬 Final Word

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!