2013-03-14 04:27:37 +04:00
|
|
|
# NXP MathExecutor
|
|
|
|
|
|
|
|
Simple math expressions calculator
|
|
|
|
|
|
|
|
## Sample usage:
|
|
|
|
|
|
|
|
<?php
|
|
|
|
require "vendor/autoload.php";
|
|
|
|
$calculator = new \NXP\MathExecutor();
|
2013-03-14 04:36:17 +04:00
|
|
|
print $calculator->execute("1 + 2 * (2 - (4+10))^2");
|
|
|
|
|
|
|
|
## Install via Composer
|
|
|
|
|
2013-03-14 04:36:29 +04:00
|
|
|
All instructions to install here: https://packagist.org/packages/nxp/math-executor
|