mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-11 03:55:31 +03:00
bc: add Chinese translation (#11129)
This commit is contained in:
parent
2fee1dcb9f
commit
db4af93682
29
pages.zh/common/bc.md
Normal file
29
pages.zh/common/bc.md
Normal file
@ -0,0 +1,29 @@
|
||||
# bc
|
||||
|
||||
> 一个任意精度计算器语言。
|
||||
> 另请参阅:`dc`.
|
||||
> 更多信息: <https://manned.org/man/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`
|
Loading…
Reference in New Issue
Block a user