mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
bc: add Chinese translation (#11129)
This commit is contained in:
parent
2fee1dcb9f
commit
db4af93682
1 changed files with 29 additions and 0 deletions
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…
Add table
Reference in a new issue