Skip to main content

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


Download files

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

Source Distribution

math-command-line-0.0.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

math_command_line-0.0.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

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