aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorNeonXP <frei@neonxp.info>2013-09-06 08:19:02 +0400
committerNeonXP <frei@neonxp.info>2013-09-06 08:19:02 +0400
commit9cef8dbc799343f6fc0fca926fbef4917b94f335 (patch)
tree915397133271cdc9e2e86a800be02ec695184fdc /README.md
parent4b08ec4b4dbf83dd242d7882e852b8d933ef0560 (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.md19
1 files changed, 18 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9bc06e3..8000e35 100644
--- a/README.md
+++ b/README.md
@@ -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