The terminal calculator is a small and helpful program to help users of the GNU/Linux terminal do calculations simply and quickly. The formula to be calculated can be fed to tcalc through the command line. Alternatively, tcalc can be run with no formula and then the free mode is started, in which the calculator will wait for user input, do the necessary calculations and print out the result, and the cycle will repeat until the user enters 'q' or 'quit'.The calculator works with the decimal, hexadecimal, octal, and binary number systems. It automatically identifies hex numbers if entered with a preceding "0x" or "0X", octal by preceding the number with a zero, binaries by preceding the number with 'b' and decimals by absence of all of the above. Alternatively, the user can indicate the type of input by setting the 'format' argument (See below).Math functions defined are (dependent on underlying GNU LibC):
These functions can be called within a formula. to have a printout of the above list, use the "-m" or "--math" flags (see 'info tcalc' or 'man tcalc').The source tarballs and the package RPM can be downloaded from below. If you are using Fedora, you can install the package through yum. |