bc: add Chinese translation (#11129)

pull/23/head
The Galaxy 2023-10-22 03:40:24 +08:00 committed by GitHub
parent 2fee1dcb9f
commit db4af93682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

29
pages.zh/common/bc.md Normal file
View 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`