Login   Register  
PHP Classes
elePHPant
Icontem

Expressions

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Alex Dan
Name: Alex Dan <e-mail contact>
Packages: 1 Browse all classes by Alex Dan Browse all classes by
Country: Romania Romania - PHP jobs in Romania
Age: ???
All time rank: 334074 in Romania Romania
Week rank: 874 Up25 in Romania Romania Up


  Detailed description   Download .zip .tar.gz  
This package can parse, convert and evaluate math expressions.

There is a convertor class that can parse a string with a math expression with infix format (operators in the middle of the operands) to postfix format (operators after operands), as well to expression tree of objects.

An evaluator class can evaluate a math expression from a postfix string or expression or an expression tree of objects.

Currently the evaluation supports addition, subtraction, multiplication and division of integer operator numbers, as well parenthesis to group expressions to be evaluated first.

  Classes of Alex Dan  >  Expressions  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Expressions
Base name: expressions
Description: Parse, convert and evaluate math expressions
Version: -
PHP version: 5.0
License: BSD License
All time users: 228 users
All time rank: 6531
Week users: 3 users
Week rank: 948 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Algorithms Numerical and statistical algorithms View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Math Math related classes. View top rated classes


  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Files folder imageConfig (2 files)
Files folder imageLib (1 file, 1 directory)
Accessible without login Plain text file main.php Example Expression Example script

  Files  /  Files folder image Config  
File Role Description
  Accessible without login Plain text file config.php Conf. Expression Example config file
  Accessible without login Plain text file load.php Aux. Expression Example autoload file

  Files  /  Files folder image Lib  
File Role Description
Files folder imageExpression (5 files)
  Accessible without login Plain text file functions.php Aux. Expression Example functions file

  Files  /  Lib  /  Files folder image Expression  
File Role Description
  Plain text file Convertor.php Class Expression Example Convertor class
  Plain text file Evaluator.php Class Expression Example Evaluator class
  Plain text file Exception.php Class Expression Example Exception class
  Plain text file Tree.php Class Expression Example Tree class
  Plain text file TreeNode.php Class Expression Example TreeNode class

Download all files: expressions.tar.gz expressions.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.