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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file math-command-line-0.0.1.tar.gz.
File metadata
- Download URL: math-command-line-0.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cada0b87f888a4090f420b103389abc3632758f030665b9c2b8cb87d1942dd7d
|
|
| MD5 |
36fbefd66de1b9f9ad9f444784bc5319
|
|
| BLAKE2b-256 |
cdcf78a34d574f33db1dfa8400a58f54e50e8ba019d251576dc6cc78f3200a0d
|
File details
Details for the file math_command_line-0.0.1-py3-none-any.whl.
File metadata
- Download URL: math_command_line-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e135a4221ad6b5269e41af886fc6a75e98f8ac482ca18cd771be243f6f00ad8
|
|
| MD5 |
05989872ba47d7ce98c6407cd12338c3
|
|
| BLAKE2b-256 |
82e98689bb0073cdb3bb608c06e2eb55605ac93d5353c76d9598fecc25b10e7b
|