Forrest logo
back to context overview

bc

List of commands for bc:

  • bc:tldr:22321 bc: Calculate an expression.
    $ echo '${5 - 3}' | bc
    try on your machine
    explain this command
  • bc:tldr:5360a bc: Start an interactive session.
    $ bc
    try on your machine
    explain this command
  • bc:tldr:5c8e0 bc: Calculate an expression with the specified scale.
    $ echo 'scale = ${10}; ${5 - 3}' | bc
    try on your machine
    explain this command
  • bc:tldr:7e4fd bc: Calculate a sine/cosine/arctangent/natural logarithm/exponential function using `mathlib`.
    $ echo '${select}(${1})' | bc --mathlib
    try on your machine
    explain this command
  • bc:tldr:924ca bc: Execute a script.
    $ bc ${path-to-script-bc}
    try on your machine
    explain this command
  • bc:tldr:96e37 bc: Calculate a sine/cosine/arctangent/natural logarithm/exponential function using `mathlib`.
    $ bc --mathlib --expression='${select}(${1})'
    try on your machine
    explain this command
  • bc:tldr:c5533 bc: Calculate an expression.
    $ bc --expression='${5 - 3}'
    try on your machine
    explain this command
  • bc:tldr:d987a bc: Start an interactive session with the standard math library enabled.
    $ bc --mathlib
    try on your machine
    explain this command
  • bc:tldr:e5fc5 bc: Calculate an expression with the specified scale.
    $ bc --expression='scale = ${10}; ${5 - 3}'
    try on your machine
    explain this command
back to context overview