>From the man page:

wcalc  is a command-line calculator designed to accept all valid mathematical
expressions. It supports all standard mathematical  operations,  parenthesis,
brackets, trigonometric functions, hyperbolic trig functions, logs, and bool‐
ean operators.

>From whatever little I have seen of it it is absolutely brilliant.

It will give bc(1) or any other tool a run for the money.

Here is a sample session.

$ wcalc
-> ?

sin cos tan cot asin acos atan acot
sinh cosh tanh coth asinh acosh atanh acoth
log ln logtwo round abs ceil floor sqrt cbrt comp
Gamma lnGamma zeta sinc

-> sin 60
 = 0.866025
-> cos 90
 = 0
-> tan 45
 = 1
-> sqrt(123234)
 = 351.047
-> log(e)
 = 0.434294
-> log(2.71828)
 = 0.434294
-> ln(e)
= 1

There is also a non interactive mode.

$ wcalc 'sin 90'
 = 1

which you can use in shell scripts.

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
To unsubscribe, email [email protected] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to