Is there any other command line calculator that supports log, n! calculations ? At least bc can't do that, it told me parse errorIt's best if I could use script, e.g echo '5!' | program
bc doesn't support log and factorial calculation?
calculator
bc supports the natural logarithm if invoked with the -l flag. You can calculate the base-10 or base-2 log with it:$ bc -l...l(100)/l(10)2.00000000000000000000l(256)/l(2)8.00000000000000000007I don't think there's a built-in factorial, but that's easy enough to write yourself:$ bc...define fact_rec (n) {   if (n < 0) {    print oops;    halt;  }  if (n < 2) return 1;  return n*fact_rec(n-1);}fact_rec(5)120Or:define fact_it (n) {  if (n < 0) {    print oops;    halt;  }  res = 1;  for (; n > 1; n--) {    res *= n;  }  return res;}fact_it(100)93326215443944152681699238856266700490715968264381621468592963895217\59999322991560894146397615651828625369792082722375825118521091686400\0000000000000000000000