Clac Versions Save

Command-line, stack-based calculator with postfix notation

0.3.3

4 years ago

This release includes contributions by @waltertross. Below are his comments:

The output format was %g, which is equivalent to %.6g and is good for floats, but the code uses doubles, which have at least 15 digits of precision. Therefore the output format is %.15g now. The inverse trigonometric functions were missing but are important. In the example words file, the value of pi has been set to its full double precision, by taking it from math.h. The erf (error function) completes the set of useful mathematical functions that cannot be derived from other words. The erf is an important function in statistics, where it is linearly related to the normal (i.e., Gaussian) cumulative distribution function. See also the "68–95–99.7 rule".

0.3.2

6 years ago

This release adds factorial, logarithm and trigonometric functions, and now the history can be navigated with <C-p>/<C-n> or the <Up>/<Down> arrow keys. the history.

0.3.1

6 years ago

0.3.0

7 years ago

This release adds stashing features: you can remove items from the stack and return them when appropriate. Also new in this version is the ability to sum all the items in the stack, to push the number of items with the count command, the generic roll command for rotating elements in the stack, and some other small additions.

0.2.0

7 years ago

This version adds support for defining custom words in a configuration file.

It also supports non-interactive invocation, which can be useful if you want to use clac from a script.

0.1.0

7 years ago

Even though clac has been usable since it was first pushed to GitHub, it now includes more operators and better documentation. Make sure to check the README and the manual page, and create an issue if you have a suggestion or if you encounter a problem.