finally, "math" gets some common expression: math "sin(PI/2)2.2 + 4.5 * 3.32 - 7 / 8.9 * sqrt(3.21)".
vs. bc. 1. bc is programming language. you can define function. but it only has 6 defined function. util-shell does only math calculation(the ones on your scientific calculator).
2. bc can only raise integer power. i.e (number)^(int). util-shell can also raise float power. i.e (number)^float
0
u/taylorchu Sep 09 '13
finally, "math" gets some common expression: math "sin(PI/2)2.2 + 4.5 * 3.32 - 7 / 8.9 * sqrt(3.21)".
vs. bc. 1. bc is programming language. you can define function. but it only has 6 defined function. util-shell does only math calculation(the ones on your scientific calculator).