"conversion of ints and rationals to any base"
Project description
Purpose
Conversion of a rational number to a representation in any base. Any rational number can be represented as a repeating sequence in any base. Any integer is representable as a terminating sequence in any base.
Motivation
This facility does not seem to exist in standard Python numerical packages or standard Python symbolic computation packages. Most likely that is because it falls between the two, as it is precise numerical computation, but involves a symbolic component, the possibly repeating sequence of digits.
Algorithmic Complexity
The complexity of operations that perform division in an arbitrary base can be quite high. Most methods are annotated with an estimate of their expected complexity in terms of the number of Python operations that they make use of. No differentiation is made among different Python operations. With respect to division in an arbitrary base, the complexity is bounded by the value of the divisor, unless a precision limit is set.
Packaging
Downstream packagers, if incorporating testing into their packaging, are encouraged to use only the tests in the test_deterministic module, to avoid testing failures that may arise due to the non-deterministic behavior of Hypothesis tests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file justbases-0.15.2.tar.gz
.
File metadata
- Download URL: justbases-0.15.2.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de6646eb9891b59657d183c7fc9ffa823b8523856b942446707e2a8615f4866f |
|
MD5 | 7524e2b1b841800cb9b7d2c2e1741ffa |
|
BLAKE2b-256 | 0967416bc9fda57876853b764ef63264163576f2e7281896ee93fbbd4e29d52a |
File details
Details for the file justbases-0.15.2-py3-none-any.whl
.
File metadata
- Download URL: justbases-0.15.2-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4df4ed625b7e543818a3fd9dcc671382bb0ba09362015f668fbca90d71453977 |
|
MD5 | 78b4111a58cd69f4e0f445eb649a47f4 |
|
BLAKE2b-256 | 8166e20d72d66aae0e623daedea1b707e25b3b045598c13f516a7974860b0d20 |