A command line tool to evaluate mathematical expressions
Project description
math
I often find myself opening a python shell from the command line in order to do some quick math. Now I don't have to.
Installation
$ pip install math
Usage
$ math 1+1
2
$ math 2**6
64
Don't forget to use quotes for expression which contain bash special characters or spaces.
$ math "sin(1)**2 + cos(1)**2"
1.0
$ math "(19*3 + 18*3 + 17*2 + 14*1) / 9"
17.666666666666668
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for math_command_line-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e135a4221ad6b5269e41af886fc6a75e98f8ac482ca18cd771be243f6f00ad8 |
|
MD5 | 05989872ba47d7ce98c6407cd12338c3 |
|
BLAKE2b-256 | 82e98689bb0073cdb3bb608c06e2eb55605ac93d5353c76d9598fecc25b10e7b |