mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
commit
b71a5265c0
1 changed files with 19 additions and 0 deletions
19
pages/common/bc.md
Normal file
19
pages/common/bc.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# bc
|
||||||
|
|
||||||
|
> Calculator.
|
||||||
|
|
||||||
|
- Run calculator in interactive mode
|
||||||
|
|
||||||
|
`bc -i`
|
||||||
|
|
||||||
|
- Calculate the result of an expression
|
||||||
|
|
||||||
|
`bc <<< "(1 + 2) * 2 ^ 2"`
|
||||||
|
|
||||||
|
- Calculate with the given precision
|
||||||
|
|
||||||
|
`bc <<< "scale=10; 5 / 3"`
|
||||||
|
|
||||||
|
- Calculate expression with sine and cosine using mathlib
|
||||||
|
|
||||||
|
`bc -l <<< "s(1) + c(1)"`
|
Loading…
Add table
Reference in a new issue