Skip to main content

command-line RPN calculator

Project description

rpnChilada is a command-line Reverse-Polish Notation calculator that was first written in C in 1988 as a four-function calculator.

It was rewritten in Python 3 in 2012 and now uses the mpmath library. It was a Python learning exercise for me, and a fun little toy, but when I found mpmath, it became really cool and powerful, so props to Fredrik Johansson, who did most of the heavy lifting (http://mpmath.org).

rpnChilada gives you the whole enchilada when it comes to playing with numbers. You get math functions, algebra functions, combinatoric functions, number theory functions, astronomy functions, physics functions, unit conversions (comparable to GNU Units) and much, much more. There are over 1000 unique operators. rpnChilada supports lists, but not matrices.

rpnChilada comes with integrated help, which isn’t complete, but has at least a basic description of every operator, and over 2400 built-in examples. Help now includes descriptions for constants and units as well, although a lot of these still need to be filled in.

rpnChilada also comes with an extensive test suite, which is being constantly improved. Many of the functions are validated against the OEIS.

Version 8 represents a major overhaul of the unit conversion code. Unit conversion is now significantly smarter than it used to be, and intermediate conversions are no longer necessary.

There are still bugs, and since it’s a one-person side project, progress is slow, but bug reports and feature requests are welcome at rickg@his.com.

Note, Windows users will want the Windows-specific wheels for pyephem and gmpy2:

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyephem

https://www.lfd.uci.edu/~gohlke/pythonlibs/#gmpy

Linux users will need the development versions of the GMP, MPC and MFPR libraries.

rpnChilada can be launched with ‘rpnChilada’ or ‘rpn’ in the Python Scripts/ directory.

For a quick primer on rpnChilada’s use, try “rpn help examples”. Please note that the OEIS integration and geographic location functions require Internet access.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rpnChilada-8.5.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rpnChilada-8.5.0-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file rpnChilada-8.5.0.tar.gz.

File metadata

  • Download URL: rpnChilada-8.5.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for rpnChilada-8.5.0.tar.gz
Algorithm Hash digest
SHA256 d91840f92ad8513c5f51dcd9bdf89f78610d406629bd80a6f587b8dbdd86ab51
MD5 e648b71c5ada828939f631cbdf678817
BLAKE2b-256 8490b46398b3f96bf558e2d1ae10746a0fbe3ef65d597162b2dbf05ad75435b8

See more details on using hashes here.

File details

Details for the file rpnChilada-8.5.0-py3-none-any.whl.

File metadata

  • Download URL: rpnChilada-8.5.0-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for rpnChilada-8.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9418244e66b417a1cee48721f31a4567df76648552a3c8e266bd95170c4b44e7
MD5 d14d3f2590cfa44d45cf360b6c7ff78d
BLAKE2b-256 c6fdaaa0edb2eee783d4539e97159942bd5c5650925511c298f73bce1c89e0d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page