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

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

identinum-0.7.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

identinum-0.7.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file identinum-0.7.1.tar.gz.

File metadata

  • Download URL: identinum-0.7.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for identinum-0.7.1.tar.gz
Algorithm Hash digest
SHA256 8c51cdc274a052aa4374f2c0fca56c60c47737f0b886c270251f366ee8be438e
MD5 50af1862b115701aa3ef913737b11f13
BLAKE2b-256 da69734d993462a05a832ec83a8652920238f5fac7d7e7ccaf8d0f1235859dc3

See more details on using hashes here.

File details

Details for the file identinum-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: identinum-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for identinum-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3affd78585eb41f91afc72c58120611cd2e16d2b61f6b3cbfe775f755c20b722
MD5 80a8a36e46d595b6097c8a4b6a358494
BLAKE2b-256 3831de1e0cb66cf25c211c4839dc230e458ce1d93952c7078dd9ed44f56e073f

See more details on using hashes here.

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