heroimg.png

eva

simple calculator REPL, similar to bc(1), with syntax highlighting and persistent history

eva.png

installation

usage

```shell eva 0.2.4 NerdyPepper akshayoppiliappan@gmail.com Calculator REPL similar to bc(1)

USAGE: eva [FLAGS] [OPTIONS] [INPUT]

FLAGS: -h, --help Prints help information -r, --radian set eva to radian mode -V, --version Prints version information

OPTIONS: -b, --base set the radix of calculation output (2, 8, 10, 16 etc.) -f, --fix set number of decimal places in the output

ARGS: optional expression string to run eva in command mode

```

type out an expression and hit enter, repeat.

```shell

1 + sin(30) 1.5 floor(sqrt(3^2 + 5^2)) 5 5sin(45) + cos(0) 4.53553 ```

updating

operators

constants

some constants avaliable in rust standard library.

e pi

examples: pi * 5^2 # πr²

functions

all trignometric functions expect input in degrees.

``` sin cos tan csc sec cot sinh cosh tanh asin acos atan acsc asec acot ln log sqrt ceil floor abs

deg(x) - convert x to degrees rad(x) - convert x to radians ```

examples: ``` sqrt(sin(30)) # parentheses are mandatory for functions

log100 # no log(100) # yes ```

quality of life features

todo

contributors

the rust community has helped eva come a long way, but these devs deserve a special mention for their contributions:

Ivan Tham
Milan Marković
asapokl