Enter your email address:

Delivered by FeedBurner

command line scientific calculator


StumbleUpon Toolbar

I was looking for a good and light calculator for Linux, and found some command line ones, I liked this one wcalc it is really light, and accept almost all mathematical expressions, and I say "almost" because I do not want to say that are all and make a mistake.

The use of it is really simple, just enter wcalc followed with the math expression in the command line, press ENTER and you will the result.

To install it on Debian run:

sudo aptitude install wcalc

and to calculate some simple operations:

wcalc '(200+200)/8*25/35.3553^2'

the result will be one, note that I am using ' to delimit the math expressions

The good thing is that it will also work with binary numbers.

wcalc -b 0b100+0b100

the result is:

= 0b1000

So the -b option make wcalc shows the result as binary and the 0b before the numbers says it that those numbers are binaries.

As you can see it is really useful, you may want to enter

man wcalc

to see some of the other options.

Trackback URL for this post:

http://www.go2linux.org/trackback/472
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

bc is another option. And of

bc is another option. And of course, perl...
perl -e 'print 12+32;'

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting