Description

La commande bc lance un calculateur basique.

Exemples

(output de la commande tldr bc)

  • bc -l : Run calculator in interactive mode using the standard math library.
  • bc <<< "(1 + 2) * 2 ^ 2" : Calculate the result of an expression.
  • bc <<< "scale=10; 5 / 3" : Calculate expression and force number of decimal places to 10.
  • bc -l <<< "s(1) + c(1)" : Calculate expression with sine and cosine using mathlib.

Informations complémentaires

  • man bc