1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/common/bc.md
spageektti a2368251ed
bc: update translations (#12957)
* bc: update es translation

* bc: update fr translation

* bc: update it translation

* bc: update ja translation

* bc: update ko translation

* bc: update zh translation

* bc: update pt_BR translation
2024-06-13 14:25:28 +02:00

520 B

bc

一个任意精度计算器语言。 另请参阅:dc. 更多信息:https://manned.org/bc.1.

  • 启动交互式会话:

bc

  • 启动交互式会话并启用标准数学库:

bc --mathlib

  • 计算表达式:

echo '{{5 / 3}}' | bc

  • 执行脚本:

bc {{路径/到/脚本.bc}}

  • 计算具有指定比例的表达式:

echo 'scale = {{10}}; {{5 / 3}}' | bc

  • 使用 mathlib 计算正弦/余弦/反正切/自然对数/指数函数:

echo '{{s|c|a|l|e}}({{1}})' | bc --mathlib