| Crates.io | evar |
| lib.rs | evar |
| version | 0.2.0 |
| created_at | 2025-03-23 01:44:09.65085+00 |
| updated_at | 2025-04-20 20:55:19.507967+00 |
| description | Modern ergonomic math calculator inspired by eva |
| homepage | |
| repository | https://github.com/enklht/seva |
| max_upload_size | |
| id | 1602263 |
| size | 101,135 |

Welcome to evar, a feature-rich CLI calculator REPL! My goal was to create a modern, ergonomic, and simple calculator.
Basic Math Functions: Perform essential mathematical operations.
Supported operators: +, -, *, /, %, ^, !
Supported functions:
sin, cos, tan, sec, csc, cotasin, acos, atansinh, cosh, tanhsqrt, exp, exp2, ln, log2, log10, lograd, degfloor, ceil, roundabs, log, ntrootMathematical Notation: Write expressions like 2 sin(x) instead of 2 * sin(x).
> 2sin(2pi/3)
1.7320508075688774
> 2 * sin(2 * pi / 3)
1.7320508075688774
> sqrt(3)
1.7320508075688772
Variable & Function Definition: Define your own variables and functions.
> let x = 3
3
> let y = 10
10
> let f(z, w) = z + w
> f(x, y)
13
Neat Error Handling: Easily understand errors.
> let f(x) =
error: found end of input expected expression
┌─ <repl>:1:12
│
1 │ let f(x) =
│ ---------- ^ found end of input expected expression
│ │
│ while parsing this function definition
Persistent History: Keep a record of your calculations.
Realtime Input Highlight: See your input highlighted as you type.
Radian & Degrees Mode: Switch between radian and degrees mode.
And More...
evar is inspired by eva, another CLI calculator written in Rust.
cargo install evar
git clone https://github.com/enklht/evar.git
cd evar
cargo run
Modern ergonomic math calculator inspired by eva
Usage: evar [OPTIONS]
Options:
-a, --angle-unit <ANGLE_UNIT> Angle Unit [default: radian] [possible values: radian,
degree]
--no-color Disable colored output
-f, --fix <FIX> Number of decimal places in output (0-63) [default: No
ne]
-d, --debug Print parsed expression for debug purpose
-h, --help Print help
-V, --version Print version
Contributions are welcome via GitHub.
This project is licensed under the MIT License.