Linked by Thom Holwerda on Mon 27th Nov 2006 10:14 UTC, submitted by Rob Newcater
OSNews, Generic OSes "If like me, you do most of your work from the command-line, using vim to edit files, mutt for e-mails, cd/ls/mv/find/etc instead of a file manager, then you may get annoyed by having to fire up a GUI calculator to make (what may sometimes be) a single calculation. This article shows how to quickly perform standard calculations on the command line."
Thread beginning with comment 185653
To read all comments associated with this story, please click here.
Google is pretty decent
by Priest on Mon 27th Nov 2006 12:50 UTC
Priest
Member since:
2006-05-12

While bc is useful for simple math, it does not do conversions like google.

"400 kilometers in miles" for instance = 248.548477 miles
"speed of light" = 299792458 m/s
"the answer to life the universe and everything" = 42

Google toolbar has become my new default calculator.

Reply Score: 1

RE: Google is pretty decent
by Doc Pain on Mon 27th Nov 2006 13:08 in reply to "Google is pretty decent"
Doc Pain Member since:
2006-10-08

"While bc is useful for simple math, it does not do conversions like google."

How about this: While bc is useful for simple math, it does not do function plotting like gnuplot. And it does not search the internet. :-)

If you set the proper factors in a file and load it into bc's memory, you can do conversions as well, e. g. you can have functions like km2mile() or usd2eur(). They're not built in by default.

"speed of light" = 299792458 m/s[i]
"the answer to life the universe and everything" = 42


Sure these are conversions? The first one is a natural constant, the second one a universal one. :-)

% bc
bc 1.06
life=42
life
42

It knows it. bc knows everything as long as you tell it.

BTW: I usually prefer google in a GUI setting because it definitely is very decent, but bc is better in console / text mode. For each work the best tool.

Reply Parent Score: 3

RE[2]: Google is pretty decent
by grfgguvf on Mon 27th Nov 2006 15:59 in reply to "RE: Google is pretty decent"
grfgguvf Member since:
2006-09-25

Google is decent in text-browsers too.

But I prefer the 'units' program myslf.

Reply Parent Score: 1