tcalc is a Ruby-powered RPN-calculator that is compact and efficient.
The TCalc script is multipurpose, as it can function as a stand-alone calculator or as a simple ASCII function plotter, and a stack-based playground. It also offers optional support for curses and readline. Information on the command-line options can be found by running "tcalc --help."
Inputs for TCalc include numbers (anything that starts with "-" or a decimal) and strings (anything that matches /^"(.*?)"$/). It should be noted that strings and numbers are evaluated by Ruby, so users can execute Ruby code by inputting, such as -1;p'foo'.
TCalc allows access to methods and constants of various classes, including Float, Complex, Rational, Integer, Matrix, Vector, and Math. Users can also pull the item at position N to the top with #N. Tokens are separated by blanks, similar to a Forth program, and the blanks between the words are significant.
Additionally, TCalc has some requirements, including Vim and Ruby. Installation is simple, with the option to extract the archive's contents to ~/vimfiles or ~/.vim as a Vim-plugin or copy the file ruby/tcalc.rb to your path, potentially renaming it to tcalc, to function as a stand-alone Ruby script.
The latest TCalc release includes new words, such as all?, any?, array_*, and, or, and !=. The curses frontend now displays possible completions and maps 127 to backspace, F1 to 'ls,' and improves the handling of cursor keys, among other updates. Moreover, TCalc now has a debugger (sort of) and a fix for nested blocks, among other enhancements.
Version 0.11: N/A