Skip to main content

Package implementing p-adic numbers

Project description

padic

This is a package implementing p-adic numbers. Includes Padic class for p-adic numbers representation as well as method of finding roots of nupy.polynomial.Polynomial roots in Z_p via Hensel Lemma and some common functions: log, exp, sin, cos, binomial.

Each p-adic number is represented as an p-adic interval, namely a*p^v + O(p^N). This allows for quick computations with certainty of corectness of computed digits (which is not the case for standard floating point implementation of real numbers as computation errors may produce incorrect results of arithmetic operations).

Please note that optional argument N of log, exp, sin, cos, binomial refers to the number of terms of series defining respective functions NOT the number of calculated correct digits of the final result. This may change in the (near?) future.

Also note that series function gives easy way of defining one's own p-adic valued functions via power series.

Will add more info here one day.

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

padic-0.2.4.tar.gz (198.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

padic-0.2.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file padic-0.2.4.tar.gz.

File metadata

  • Download URL: padic-0.2.4.tar.gz
  • Upload date:
  • Size: 198.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for padic-0.2.4.tar.gz
Algorithm Hash digest
SHA256 b47e1d1143dd1a9d8a54fdbffe1bba3a3a17c7e3dfa4cd109c0c431dad7b8bfa
MD5 b41930010f79ee92c64294fec4085c46
BLAKE2b-256 64aabf19347a56afa246e41cff91db56b76d327ead9c19d9cfa4d74d6fe3fa08

See more details on using hashes here.

File details

Details for the file padic-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: padic-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for padic-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 429383cead1662e35464b4a81e1e626d4160db7f22b305f7b5d3356664536b5c
MD5 81b7dd462811df1c09323966c4b23de9
BLAKE2b-256 0a53a9d7c0eeacbebd08421c2821a3402a43286cd604d278d6e84cb6b96ea1d0

See more details on using hashes here.

Supported by

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