aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md46
1 files changed, 22 insertions, 24 deletions
diff --git a/readme.md b/readme.md
index 484ef55..447d58d 100644
--- a/readme.md
+++ b/readme.md
@@ -18,14 +18,12 @@ $ eva
18type out an expression and hit enter, repeat. 18type out an expression and hit enter, repeat.
19 19
20```shell 20```shell
211 + sin(30) 21> 1 + sin(30)
22ans: 1.5 221.5
23 23> floor(sqrt(3^2 + 5^2))
24floor(sqrt(3^2 + 5^2)) 245
25ans: 5 25> 5sin(45) + cos(0)
26 264.535533905932738
275sin(45) + cos(0 # eva will try to autobalance braces
28ans: 3.4999999999999996
29``` 27```
30 28
31### operators 29### operators
@@ -38,20 +36,20 @@ ans: 3.4999999999999996
38fn(x: Number) -> Number 36fn(x: Number) -> Number
39 37
40``` 38```
41sin(x) | 39sin
42cos(x) | 40cos
43tan(x) | 41tan
44csc(x) | -> x is in degrees 42csc
45sec(x) | 43sec
46cot(x) | 44cot
47sinh(x) 45sinh
48cosh(x) 46cosh
49tanh(x) 47tanh
50ln(x) # log to the base e 48ln
51log(x) # log to the base 10 49log
52sqrt(x) # x ^ 0.5 50sqrt
53ceil(x) 51ceil
54floor(x) 52floor
55``` 53```
56 54
57examples: 55examples:
@@ -78,9 +76,9 @@ ans: 6
78 76
79### todo 77### todo
80 78
81 - add detailed error handler 79 - ~~add detailed error handler~~
82 - multiple arg functions 80 - multiple arg functions
83 - ~~unary operators (minus, plus)~~ 81 - ~~unary operators (minus, plus)~~
84 - screenshots 82 - screenshots
85 - lineditor with syntax highlighting 83 - ~~lineditor~~ with syntax highlighting
86 - ~~add more functions~~ 84 - ~~add more functions~~