minimalist python calculator
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
calc
scripts
.gitignore
LICENSE
README.md
setup.py

README.md

calc

for python

Everything you've ever wanted in a scientific calculator, implemented with python. Supports SI prefixes, unit conversions, physical constants, output and formatting shortcuts, and addresses a few of the shortcomings of vanilla math from the python standard library. Comes with all of the fixin's of the python language, including ability to define variables, lists, and functions on the fly. Though they are not dependencies, it is also possible and handy to import numpy, pyplot, scipy, sympy, etc. Imbued with awesomeness and miracles.
Guaranteed to increase physicist happiness. Minimalist.

installing

Installing is pretty standard python fare. Combine ./setup.py install --root=$prefix with the package manager of your choice. Some crazy person maintains an AUR package, so you Arch Linux users can do pacaur -S python-calc.

using

Start the calculator with the calc command:

$ calc
>>>

Then do things.

>>> cos(tau)
1.0
>>> L = 300*milli*metre
>>> L/inch
11.811023622047244
>>> omega = sqrt(g/L)
>>> omega
5.717414917017422
>>>

Yeah, that's nice.

vi:fo=atw