This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Bringing the math tools of Python to the command-line

Doing math on the command-line is hard. Integer math can be done with BASH, but the only utility around for floating-point math is bc, and that can be confusing with its scale and precision. What if you want the power of Python’s math, perhaps programmatically? Enter: pmath.

Examples

Basic input:

$ pmath '3 + 4'
7
$ echo '3+4' | pmath
7
$ pmath <<< 3+4
7
$ pmath 'x=3;x+2'
5

You can set the output format with a -f switch:

$ pmath -f .4f <<< pow(2000, 1/3)
12.5992
$ pmath -f .4f <<< sin(pi/2)
1.0000

Enabling complex math operations is straightforward with -c:

$ pmath -c <<< exp(1j*pi).real
-1.0
$ pmath -f.2f -c 'ang=3*pi/4; exp(1j*ang)'
-0.71+0.71j

Installation

Running pip install pmath will install the command-line utility.

Release History

Release History

0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pmath-0.3.linux-x86_64.tar.gz (3.6 kB) Copy SHA256 Checksum SHA256 any Dumb Binary Apr 2, 2015
pmath-0.3.tar.gz (3.3 kB) Copy SHA256 Checksum SHA256 Source Apr 2, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting