← 返回命令列表

Linux command

eva 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Calculate expression

eva "[2 + 3 * 4]"

Calculate with functions

eva "[sin(pi/2)]"

Use radian mode for trigonometric functions

eva --radian "[sin(pi/2)]"

Interactive REPL mode

eva

Set decimal precision

eva --fix [20] "[pi]"

Change output radix/base

eva --base [16] "[255]"

说明

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.

参数

-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.

FAQ

What is the eva command used for?

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.

How do I run a basic eva example?

Run `eva "[2 + 3 * 4]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f, --fix _N_ do in eva?

Number of decimal places in output (1-64, default 10).