PHP Classes

PHP Equations: Solve linear, polynomial, trigonometric equations

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (7)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 928 All time: 3,845 This week: 404Up
Version License PHP version Categories
php-equations 1.0.0GNU General Publi...5.0PHP 5, Math


This class can solve linear, polynomial, trigonometric equations.

It takes string with one or more equations and parses the string to solve the equations.

The class can find the solutions linear, polynomial and trigonometric mathematical equations.

The solutions are returned as an associative array that tells the values of each equation variable.

The class uses a variation of Newton's method with a special technique, called Blocking, to maximize speed by reducing a large problem into smaller problems with less variables.

The limit of time running the algorithm, the number of variables, the number of iterations and the iteration step are configurable parameters.

Innovation Award
PHP Programming Innovation award winner
July 2013

Prize: One copy of the Zend Studio
There are several types of equations that are not very easy to solve by humans.

This class implements a solution to solve several types of equations with great speed by reducing large problems into smaller ones.

Manuel Lemos
Picture of Naveed ur Rehman
  Performance   Level  
Name: Naveed ur Rehman <contact>
Classes: 2 packages by
Country: Pakistan Pakistan
Age: 38
All time rank: 211227 in Pakistan Pakistan
Week rank: 641 Up11 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example how to use
Plain text file phpequations.class.php Class Main class with all methods requireds
Accessible without login Plain text file phpequations.resource.dat Data Resource/data file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,845
This week:404Up
User Ratings User Comments (3)
 All time
Just Brilliant!!!
7 years ago (????? ???)
Uses a windows specific line delimiter, but that is easy to fix.
8 years ago (Will Schleter)
9 years ago (misla)