rpnCalc

Free and open source Reverse Polish Notation (RPN) interpreter for use as an interactive calculator
Download

rpnCalc Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Ray Buvel
  • Publisher web site:
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 101 KB

rpnCalc Tags


rpnCalc Description

Free and open source Reverse Polish Notation (RPN) interpreter for use as an interactive calculator Anyone who uses the Python interactive command line knows that Python is a good interactive calculator. However, there are many people who prefer Reverse Polish Notation (RPN) for simple interactive calculations. The rpncalc tool will provide you with an easy to use interpreter for RPN that easily integrates with the standard Python interpreter. Here are some key features of "rpncalc": · Supports the standard Python numeric data types (integer, long integer, float, and complex). · Uses the Class Library for Numbers (CLN) to provide rationals, extended precision floating point, and their complex counterparts. Defaults to the CLN numeric types. Requires an explicit conversion to Python float and complex. · Preserves the user's data when exceptions are raised. This helps the user to debug a calculation or recover from the error and continue. · Division of two integers produces a rational. · Supports the Python built-in functions that apply to numbers. · Provides extended precision versions of the functions in the standard math and cmath libraries. · Allows user installation of additional Python functions. This is the primary mechanism for programming the calculator. · Supports smooth transition between RPN and Python interpreters. This allows a user to use the interpreter that is most convenient for solving a particular problem. · Avoids the complexity of making the RPN interpreter into a full programming language. In my opinion, Python is a lot easier to program in than a language like Forth (the classic RPN programming language). I have used Forth and Forth-like languages for over 20 years. I do not think the RPN interpreter should be turned into yet another Forth-like language. · Leaves the hard things like arrays to the Python interpreter. Inventing RPN notation for something Python handles well is a waste of time. Much better to simply switch over to the Python interpreter. Requirements: · Python · CLN


rpnCalc Related Software