PHP Classes

Equation Operating System: Solve equations with multiple variables

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (8 months ago) RSS 2.0 feedStarStarStarStar 61%Total: 1,830 This week: 1All time: 2,022 This week: 1,271Up
Version License Categories  
eos 1.0.0GNU General Publi...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: 801100 in United States United States
Week rank: 540 Up54 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 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,830All time:2,022
 This week:1This week:1,271Up
 User Ratings  
 All time