aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2019-04-07 15:35:06 +0100
committerNerdyPepper <[email protected]>2019-04-07 15:35:06 +0100
commitfb38a1f6fd3caec768b782e0f24cfe7619cb4b74 (patch)
tree99b03a14de699c5f675bb02344faf08dac4acfa4
parent9a99d7d40ac15a792d73bfe73a73ec2b87b887e4 (diff)
update usage, progress
-rw-r--r--readme.md49
1 files changed, 27 insertions, 22 deletions
diff --git a/readme.md b/readme.md
index a81f9a1..ea96c76 100644
--- a/readme.md
+++ b/readme.md
@@ -23,7 +23,23 @@ $ cargo run
23### usage 23### usage
24 24
25```shell 25```shell
26$ eva 26eva 0.2.3
27NerdyPepper <[email protected]>
28Calculator REPL similar to bc(1)
29
30USAGE:
31 eva [FLAGS] [OPTIONS] [INPUT]
32
33FLAGS:
34 -h, --help Prints help information
35 -r, --radian set eva to radian mode
36 -V, --version Prints version information
37
38OPTIONS:
39 -f, --fix <FIX> set number of decimal places in the output
40
41ARGS:
42 <INPUT> optional expression string to run eva in command mode
27``` 43```
28 44
29type out an expression and hit enter, repeat. 45type out an expression and hit enter, repeat.
@@ -47,23 +63,12 @@ type out an expression and hit enter, repeat.
47All trignometric functions expect input in degrees. 63All trignometric functions expect input in degrees.
48 64
49``` 65```
50sin 66sin cos tan csc sec cot sinh cosh tanh
51cos 67asin acos atan acsc asec acot ln log sqrt
52tan 68ceil floor abs
53csc 69
54sec
55cot
56sinh
57cosh
58tanh
59ln
60log
61sqrt
62ceil
63floor
64deg(x) - convert x to degrees 70deg(x) - convert x to degrees
65rad(x) - convert x to radians 71rad(x) - convert x to radians
66abs(x) - (x * x) ^ 0.5
67``` 72```
68 73
69examples: 74examples:
@@ -78,14 +83,14 @@ log(100) # yes
78 83
79 - auto insertion of `*` operator 84 - auto insertion of `*` operator
80``` 85```
8112sin(45(2)) # 12 * sin(45 * (2)) 86>12sin(45(2)) # 12 * sin(45 * (2))
82ans: 12 8712
83``` 88```
84 89
85 - auto balancing of parentheses 90 - auto balancing of parentheses
86``` 91```
87ceil(sqrt(3^2 + 5^2 # ceil(sqrt(3^2 + 5^2)) 92>ceil(sqrt(3^2 + 5^2 # ceil(sqrt(3^2 + 5^2))
88ans: 6 936
89``` 94```
90 95
91- super neat error handling 96- super neat error handling
@@ -98,8 +103,8 @@ Domain Error: Out of bounds!
98 103
99 - add support for variables (ans, pi, e) 104 - add support for variables (ans, pi, e)
100 - multiple arg functions 105 - multiple arg functions
101 - screenshots 106 - ~~screenshots~~
102 - create logo 107 - ~~create logo~~
103 - ~~unary operators (minus, plus)~~ 108 - ~~unary operators (minus, plus)~~
104 - ~~add detailed error handler~~ 109 - ~~add detailed error handler~~
105 - ~~add unit tests~~ 110 - ~~add unit tests~~