Wednesday, May 30, 2007

Calculate with the Basic Calculator -- bc

You can do simple command line calculations with the basic calculator, bc, such as add, subtract, multiply, division, modulus, sqrt, raise a number to a power, logarithms, exponential, compute sines, cosines, loops, functions, and more. Here are some really basic examples -- scale was used to represent precision. I have used the bc command while in the single user mode.

#bc
12-12
0
12+12
24
12*12
144
12/12
1
scale=3
12/12
1.000
12%12
0
2^3
8
sqrt(12)
3
scale=3
sqrt(12)
3.464
22/7
3
scale=6
22/7
3.142857
scale=10
22/7
3.1428571428

1 comment:

IronMan said...

http://basic-calculator.com

I found this calculator web based