Skip to main content

Justbases

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.

Metadata

Release files for justbases 0.15.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for justbases 0.15.3
File Size Uploaded
justbases-0.15.3.tar.gz 23.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for justbases 0.15.3
File Interpreter ABI Platform
justbases-0.15.3-py3-none-any.whl Python 3 none any Details

Total release size: 53.1 kB

Release files / justbases-0.15.3.tar.gz

Download URL justbases-0.15.3.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0236b0567513356e7b1679d20f1eba704d18221347a355b4bfde6b1385f31b66
BLAKE2b-256 checksum
How to use checksums
b189fcf124867eb03c2685ed1b2194c5244fbe404505667f87c8426dfc60e284
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Release files / justbases-0.15.3-py3-none-any.whl

Download URL justbases-0.15.3-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14585c53be4066094fbcb72e6a6133f2d5eacc460c0ecf0a514cd4bee43b58f6
BLAKE2b-256 checksum
How to use checksums
b3fea14146e06b4e71edd377500aae33a4245da9af3daeb51148e3982c6e3515
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.15.3 This release

2 release files

0.15.2

2 release files

0.15

2 release files

0.14

1 release file

0.13

1 release file

0.12

1 release file

0.11

1 release file

0.10

1 release file

0.9

1 release file

0.08

1 release file

0.07

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page