Files
tldr/pages.zh/common/eva.md

20 lines
427 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# eva
> 简单的计算器 REPL类似于 `bc`,具有语法高亮和持久历史记录。
> 更多信息:<https://github.com/NerdyPepper/eva>。
- 以交互模式运行计算器:
`eva`
- 计算一个表达式的结果:
`eva "{{(1 + 2) * 2 ^ 2}}"`
- 计算一个表达式并强制小数位数为 5
`eva --fix {{5}} "{{5 / 3}}"`
- 计算一个包含正弦和余弦的表达式:
`eva "{{sin(1) + cos(1)}}"`