LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

eva

calculator REPL with arbitrary precision

TLDR

Calculate expression
$ eva "[2 + 3 * 4]"
copy
Calculate with functions
$ eva "[sin(pi/2)]"
copy
Use radian mode for trigonometric functions
$ eva --radian "[sin(pi/2)]"
copy
Interactive REPL mode
$ eva
copy
Set decimal precision (number of fixed decimal places, 1-64)
$ eva --fix [20] "[pi]"
copy
Change output radix/base (1-36)
$ eva --base [16] "[255]"
copy

SYNOPSIS

eva [options] [expression]

DESCRIPTION

eva is a calculator REPL and CLI written in Rust for evaluating mathematical expressions. It supports standard arithmetic, trigonometric functions, logarithms, and constants like pi and e.In interactive REPL mode, previous results are available as _ and history can be recalled. Pass an expression directly on the command line for one-off evaluation.eva provides a quick command-line calculator with more intuitive syntax than bc.

PARAMETERS

INPUT

Mathematical expression string to evaluate (non-interactive).
-f, --fix N
Number of decimal places in output (1-64, default 10).
-b, --base N
Radix of calculation output (1-36, default 10).
-r, --radian
Use radians for trigonometric functions.
-h, --help
Display help information.
-V, --version
Show version information.

INSTALL

sudo pacman -S eva
copy
brew install eva
copy
nix profile install nixpkgs#eva
copy

CAVEATS

Complex expressions may need quoting to avoid shell interpretation. Variables do not persist in one-shot command mode; use the interactive REPL for multi-step calculations.

HISTORY

eva was created as a modern command-line calculator, providing an alternative to bc and similar tools with a more intuitive syntax and additional features.

SEE ALSO

bc(1), calc(1), qalc(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid