From 8335e8447640500dfee823c01d054331f46900d2 Mon Sep 17 00:00:00 2001 From: Igor Shubovych Date: Sat, 12 Dec 2015 22:37:45 +0200 Subject: [PATCH] bc: add page --- pages/common/bc.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/bc.md diff --git a/pages/common/bc.md b/pages/common/bc.md new file mode 100644 index 000000000..9a161d1ad --- /dev/null +++ b/pages/common/bc.md @@ -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)"`