mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-22 08:02:34 +00:00
Update cheatsheets
This commit is contained in:
6
tldr/bc
6
tldr/bc
@@ -13,9 +13,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`bc`
|
||||
|
||||
- Start an [i]nteractive session with the standard math [l]ibrary enabled:
|
||||
- Start an interactive session with the standard math library enabled:
|
||||
|
||||
`bc --interactive --mathlib`
|
||||
`bc {{[-i|--interactive]}} {{[-l|--mathlib]}}`
|
||||
|
||||
- Calculate an expression:
|
||||
|
||||
@@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Calculate a sine/cosine/arctangent/natural logarithm/exponential function using `mathlib`:
|
||||
|
||||
`echo '{{s|c|a|l|e}}({{1}})' | bc --mathlib`
|
||||
`echo '{{s|c|a|l|e}}({{1}})' | bc {{[-l|--mathlib]}}`
|
||||
|
||||
- Execute an inline factorial script:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user