Login   Register  
PHP Classes
elePHPant
Icontem

Equation Operating System: Solve equations with multiple variables

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Demos   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-08-04 (4 months ago) RSS 2.0 feedStarStarStarStar 61%Total: 1,808 This week: 3All time: 2,026 This week: 574Up
Version License Categories  
eos 1.0.0GNU General Public Lice...Graphics, Math
Description Author  

This class solves equations with multiple variables.

It does not resort to the PHP eval() function to help prevent security risks of using malicious expression values for instance with a calculator that takes expressions defined by the users.

It comes with a sub-class that can produce graphic charts plotting the curve defined by the equation expression withing a given range of x and y values. The generate chart graphics can be outputted in the PNG or JPEG formats using the GD library.

Innovation Award  
PHP Programming Innovation award nominee
January 2005
Number 2


Prize: One downloadable copy of Komodo Pro
Solving equations can have many applications, like for instance, drawing charts that represent the curves defined by assigning values of given ranges to the variables of the equations.

The PHP eval() function can be used to dynamically evaluate the expressions defined by an equation. However, it may be dangerous to evaluate an arbitrary expression provided by an user, as it may contain malicious code.

This class provides an alternative solution that consists in a full expressions parser and evaluator that only supports a limited set of operations that do not represent a security risk when the operations are evaluated.

Manuel Lemos
Picture of Jon Lawrence
Name: Jon Lawrence <contact>
Classes: 4 packages by
Country: United States United States
Age: 30
All time rank: 807101 in United States United States
Week rank: 444 Up47 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Graphing calcExternal page  
  Files folder image Files  
File Role Description
Accessible without login Plain text file README.md Doc. Description of class functionality and use cases
Plain text file eos.class.php Class Main EOS Class
Accessible without login Plain text file index.php Example Example usage of graphing function
Plain text file stack.class.php Class Supporting 'stack' class

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,808All time:2,026
 This week:3This week:574Up
 User Ratings  
 
 All time
Utility:95%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:-
Examples:55%StarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:778