ralcalc version 1.2.4

What is ralcalc?

ralcalc is a simple command line calculator designed to take a single line input and produce a result. I also have it installed as the "=" command for even quicker access.

For example:

= 2*9
2*9 = 18

Both the input and output make use of SI prefixes (see http://en.wikipedia.org/wiki/SI_prefix) for easier input and reading of results. Only the common engineering prefixes that are powers a multiple of three are used, so G, M, k, m, u, n, etc.

Numbers of the style 1e-3 are also supported for input.

Version information can be shown with:

= -h
ralcalc -h

See also the man page.

Downloads

The source is also available as a Mercurial repository at http://hg.atchoo.org/ralcalc. To get a copy use "hg clone http://hg.atchoo.org/ralcalc".

Operators, Functions and Constants

= 2^.5
2^.5 = 1.41421

= 1/_
1/_ = 707.107m

Precedence

Anything within brackets [] or () is processed first. Within brackets, the order or precedence is ^, * /, + -.

Bugs / Requests

Either contact me directly (see the bottom of the page), or else head to launchpad to submit a new bug report or see existing ones.

Changes

1.2.4 (20081114)

1.2.3 (20080916)

1.2.2 (20080915)

1.2.1 (20080718)

1.2.0 (20080609)

1.1.0 (20080601)

1.0.1 (20080322)

1.0 (20080322)

20070712

20070702

20070616

20070614

20070613

20070610

Licence

This code is licensed under GPL licence. See the COPYING file in the download for more information.

Contact

ralcalc was written in C by Roger Light to fulfill his own needs. He knows that there are other languages that are better suited to this kind of thing, but he isn't really bothered about that.

Questions/suggestions should be directed to roger_atchoo_org. Replace the _ with @ and . respectively.