PHP Classes

Classes of Alex Dan

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of Alex Dan (1)  >  Mission progress status  >  Reputation  
Picture of Alex Dan
Name: Alex Dan <contact>
Classes: 1
Country: Romania Romania
Age: ???
All time rank: 361070 in Romania Romania
Week rank: 158 Up5 in Romania Romania Up
All time users: 379
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Expressions  
Parse, convert and evaluate math expressions
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.
Not enough user ratings


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z