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. rpnChilada supports lists, but not matrices.

rpnChilada comes with integrated help, which isn’t complete, but has at least a basic description of every function, and over 1200 built-in examples.

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

Version 7 has been in the works for more than two and a half years, and the number of operators since version 6.4 has increased by at least 200. It also supports user-defined persistent variables and functions. rpnChilada also caches lookups and certain calculations.

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

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-7.2.3.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

rpnChilada-7.2.3-py3-none-any.whl (2.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rpnChilada-7.2.3.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for rpnChilada-7.2.3.tar.gz
Algorithm Hash digest
SHA256 f27b99c7f1b2a352b29526853cdbd204c1c8a9e8d6183326e25922f51f86b7eb
MD5 8e5bf897138df0a0e8e0748dec236e1f
BLAKE2b-256 cc83a6591d50278b4d29cc458c7d450df998bcd7ff454a8c07c92aa0d9d2b2de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rpnChilada-7.2.3-py3-none-any.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for rpnChilada-7.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 05cd7b9390d0bff0e06e3ba40b1c70e30a1eec083c8048503123aa8d83daf7b3
MD5 c18499837acbebb59d2c077c5b266c1d
BLAKE2b-256 f5392b27d1b735f0690b88f4d5cb65b01acad7b627b325068a2835d6105ede5a

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