diff options
author | NeonXP <frei@neonxp.info> | 2013-09-06 08:19:02 +0400 |
---|---|---|
committer | NeonXP <frei@neonxp.info> | 2013-09-06 08:19:02 +0400 |
commit | 9cef8dbc799343f6fc0fca926fbef4917b94f335 (patch) | |
tree | 915397133271cdc9e2e86a800be02ec695184fdc /README.md | |
parent | 4b08ec4b4dbf83dd242d7882e852b8d933ef0560 (diff) |
+ Added cache, which speeds up the repetitive calculations
+ Returned variables, because they need for cached expressions
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -99,4 +99,21 @@ And adding to executor: ```php $executor->addOperator('MyNamespace\ModulusToken'); -```
\ No newline at end of file +``` + +## Variables: + +Default variables: + +$pi = 3.14159265359 +$e = 2.71828182846 + +You can add own variable to executor: + +```php +$executor->setVars(array( + 'var1' => 0.15, + 'var2' => 0.22 +)); + +$executor->execute("$var1 + $var2");
\ No newline at end of file |