mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 02:41:46 +00:00
26 lines
550 B
Plaintext
26 lines
550 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# eva
|
|
|
|
> Simple calculator REPL, similar to `bc`, with syntax highlighting and persistent history.
|
|
> More information: <https://github.com/NerdyPepper/eva>.
|
|
|
|
- Run the calculator in interactive mode:
|
|
|
|
`eva`
|
|
|
|
- Calculate the result of an expression:
|
|
|
|
`eva "{{(1 + 2) * 2 ^ 2}}"`
|
|
|
|
- Calculate an expression forcing the number of decimal places to 5:
|
|
|
|
`eva --fix {{5}} "{{5 / 3}}"`
|
|
|
|
- Calculate an expression with sine and cosine:
|
|
|
|
`eva "{{sin(1) + cos(1)}}"`
|