diff options
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 46 |
1 files changed, 22 insertions, 24 deletions
@@ -18,14 +18,12 @@ $ eva | |||
18 | type out an expression and hit enter, repeat. | 18 | type out an expression and hit enter, repeat. |
19 | 19 | ||
20 | ```shell | 20 | ```shell |
21 | 1 + sin(30) | 21 | > 1 + sin(30) |
22 | ans: 1.5 | 22 | 1.5 |
23 | 23 | > floor(sqrt(3^2 + 5^2)) | |
24 | floor(sqrt(3^2 + 5^2)) | 24 | 5 |
25 | ans: 5 | 25 | > 5sin(45) + cos(0) |
26 | 26 | 4.535533905932738 | |
27 | 5sin(45) + cos(0 # eva will try to autobalance braces | ||
28 | ans: 3.4999999999999996 | ||
29 | ``` | 27 | ``` |
30 | 28 | ||
31 | ### operators | 29 | ### operators |
@@ -38,20 +36,20 @@ ans: 3.4999999999999996 | |||
38 | fn(x: Number) -> Number | 36 | fn(x: Number) -> Number |
39 | 37 | ||
40 | ``` | 38 | ``` |
41 | sin(x) | | 39 | sin |
42 | cos(x) | | 40 | cos |
43 | tan(x) | | 41 | tan |
44 | csc(x) | -> x is in degrees | 42 | csc |
45 | sec(x) | | 43 | sec |
46 | cot(x) | | 44 | cot |
47 | sinh(x) | 45 | sinh |
48 | cosh(x) | 46 | cosh |
49 | tanh(x) | 47 | tanh |
50 | ln(x) # log to the base e | 48 | ln |
51 | log(x) # log to the base 10 | 49 | log |
52 | sqrt(x) # x ^ 0.5 | 50 | sqrt |
53 | ceil(x) | 51 | ceil |
54 | floor(x) | 52 | floor |
55 | ``` | 53 | ``` |
56 | 54 | ||
57 | examples: | 55 | examples: |
@@ -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~~ |