diff options
author | NerdyPepper <[email protected]> | 2019-04-07 15:35:06 +0100 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2019-04-07 15:35:06 +0100 |
commit | fb38a1f6fd3caec768b782e0f24cfe7619cb4b74 (patch) | |
tree | 99b03a14de699c5f675bb02344faf08dac4acfa4 | |
parent | 9a99d7d40ac15a792d73bfe73a73ec2b87b887e4 (diff) |
update usage, progress
-rw-r--r-- | readme.md | 49 |
1 files changed, 27 insertions, 22 deletions
@@ -23,7 +23,23 @@ $ cargo run | |||
23 | ### usage | 23 | ### usage |
24 | 24 | ||
25 | ```shell | 25 | ```shell |
26 | $ eva | 26 | eva 0.2.3 |
27 | NerdyPepper <[email protected]> | ||
28 | Calculator REPL similar to bc(1) | ||
29 | |||
30 | USAGE: | ||
31 | eva [FLAGS] [OPTIONS] [INPUT] | ||
32 | |||
33 | FLAGS: | ||
34 | -h, --help Prints help information | ||
35 | -r, --radian set eva to radian mode | ||
36 | -V, --version Prints version information | ||
37 | |||
38 | OPTIONS: | ||
39 | -f, --fix <FIX> set number of decimal places in the output | ||
40 | |||
41 | ARGS: | ||
42 | <INPUT> optional expression string to run eva in command mode | ||
27 | ``` | 43 | ``` |
28 | 44 | ||
29 | type out an expression and hit enter, repeat. | 45 | type out an expression and hit enter, repeat. |
@@ -47,23 +63,12 @@ type out an expression and hit enter, repeat. | |||
47 | All trignometric functions expect input in degrees. | 63 | All trignometric functions expect input in degrees. |
48 | 64 | ||
49 | ``` | 65 | ``` |
50 | sin | 66 | sin cos tan csc sec cot sinh cosh tanh |
51 | cos | 67 | asin acos atan acsc asec acot ln log sqrt |
52 | tan | 68 | ceil floor abs |
53 | csc | 69 | |
54 | sec | ||
55 | cot | ||
56 | sinh | ||
57 | cosh | ||
58 | tanh | ||
59 | ln | ||
60 | log | ||
61 | sqrt | ||
62 | ceil | ||
63 | floor | ||
64 | deg(x) - convert x to degrees | 70 | deg(x) - convert x to degrees |
65 | rad(x) - convert x to radians | 71 | rad(x) - convert x to radians |
66 | abs(x) - (x * x) ^ 0.5 | ||
67 | ``` | 72 | ``` |
68 | 73 | ||
69 | examples: | 74 | examples: |
@@ -78,14 +83,14 @@ log(100) # yes | |||
78 | 83 | ||
79 | - auto insertion of `*` operator | 84 | - auto insertion of `*` operator |
80 | ``` | 85 | ``` |
81 | 12sin(45(2)) # 12 * sin(45 * (2)) | 86 | >12sin(45(2)) # 12 * sin(45 * (2)) |
82 | ans: 12 | 87 | 12 |
83 | ``` | 88 | ``` |
84 | 89 | ||
85 | - auto balancing of parentheses | 90 | - auto balancing of parentheses |
86 | ``` | 91 | ``` |
87 | ceil(sqrt(3^2 + 5^2 # ceil(sqrt(3^2 + 5^2)) | 92 | >ceil(sqrt(3^2 + 5^2 # ceil(sqrt(3^2 + 5^2)) |
88 | ans: 6 | 93 | 6 |
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~~ |