Skip to main content

Guess symbolic expressions from decimals

Project description

identinum

PyPi Version PyPI pyversions GitHub stars PyPi downloads

Discord

gh-actions codecov Code style: black

A command-line wrapper around mpmath's identify.

You come across the number 0.866025. It looks vaguely familiar but you can't quite point your finger at it? Then identinum is for you.

identinum is a small command-line utility that "de-decimalizes" decimal numbers into approximate rational expressions (with some basic functions).

$ identinum 0.4285714285
3/7   -7.14285297576112E-11
$ identinum 0.866025403
sqrt(3)/2   -7.84438675343059E-10

Installation

identinum is available from the Python Package Index, so simply do

pip install identinum

Testing

To run the identinum unit tests, check out this repository and type

pytest

License

identinum is published under the MIT license.

Project details


Download files

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

Files for identinum, version 0.6.1
Filename, size File type Python version Upload date Hashes
Filename, size identinum-0.6.1-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size identinum-0.6.1.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page