Etienne Kneuss

home » repository » php » Math_Expression » example.php
Tree:
school
mp3
php
sample
publications
Math_Derivative
Math_Expression
Operators
Exceptions
Structures
example.php
Expression.php
Math_Expression-0.3.tar.gz
Math_Expression-0.2.tar.gz
ircbot
php.net
images
dump

Source code raw phps

    <pre><?php     require_once 'Expression.php';     $t1 = microtime(true);          require_once 'Structures/Math_Expression_Structure_Vector.php';     Math_Expression::registerStructure(new Math_Expression_Structure_Vector);     $input = '---1.2';     $expression = new Math_Expression($input);     if ($result = $expression->evaluate()) {         echo 'Evaluation result: ', $result;     }      ?>

Comments

There is currently no comment here.

Add a comment

Username:

Spam Challenge: 2+7=?

Comment: