I just ran across http://x-bc.sourceforge.net/index.html. If you've ever used the Unix bc calculator utility, this project provides two excellent extensions to the built in capabilities of the calculator. In particular:
http://x-bc.sourceforge.net/extensions_bc.html
http://x-bc.sourceforge.net/scientific_constants_bc.html
You'll get a wealth of math functions available to you by simply including the extension files avaiable at those URLs.
In order to have these extensions always loaded as well turn on the built in math extensions, you can alias your bc command as follows:
alias bc="bc -l ~/bin/*.bc"
A blog about software development, primarily in Java and about web applications.
About Me
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment