Update README.md

This commit is contained in:
Lico San
2019-06-17 13:39:46 +02:00
committed by GitHub
parent 8ad7ac3a63
commit 7dbc077d17
+6 -2
View File
@@ -5,10 +5,12 @@ If you need to evaluate a formula with basic operators and variables, and
* You dont want to use EVAL for obvious security reasons, * You dont want to use EVAL for obvious security reasons,
* You don't want to rely on half the internet as dependancies, but prefer a single self-contained class, * You don't want to rely on half the internet as dependancies, but prefer a single self-contained class,
* You don't necessarily have the latest PHP version, * You don't necessarily have the latest PHP version, or Composer,
* You want something readable that you could easily understand and customize, * You want something readable that you could easily understand and customize,
* You need something that knows about operators priority, unary operators, and parenthesis,
* You want to be able to include sub-formulas inside your variables,
Then you might like Formula1 ! ;-) ...then you might like Formula1 ! ;-)
**Simple usage no variables** **Simple usage no variables**
@@ -32,4 +34,6 @@ $f1 = new Formula1('-45+(fourty_one*2)-(6/(three+1))' , ['fourty_one'=>'82/2', '
echo($f1->compute()); echo($f1->compute());
``` ```
##TODO
* add math operations like sin, cos, sqrt etc...