NumX - Import Numbers
Just Import Numbers.
>> from numx import p25 # The 25th prime
>> print(p25)
97
This library allows importing useful numbers, as the Nth prime, prime lists, random numbers, fibonacci, e, pi, ...
The library is thoroughly tested, and uses sympy as its computational mind.
How to Download
pip install numx
Supported Number Types
pN- the Nth prime.plN- list of the first N primes.PN- count the primes upto N.PLN- list of primes upto N.nN- the number N.rN- random integer in range [0, N].piN- pi to N decimal places (as numx.__Float).eN- e to N decimal places (as numx.__Float).tN- Euler's totient function of N.faN- N! (N factorial).fiN- fibonacci(N), starting from fi0 == 0.
Moreover, for big numbers you can use:
2e7to denote2 * 10**72p7to denote2 ** 7_as a dot, so:6_25p_5is6.25 ** 0.5
An import can fail only when importing a variable written in a bad format (e.g. numx.n7e will fail).
When it fails, numx will raise the numx.__NumXError exception, which inherits from ValueError.
numx.__Float is sympy.Float, which supports the str() and float() functions.
How to Test
The library is thoroughly tested. If you want to run the test, just run:
>> git clone https://github.com/tomhea/numx.git
>> pytest numx
Metadata
Release files for numx 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| numx-1.0.1.tar.gz | 3.9 kB | Without provenance | Details for numx-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| numx-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for numx-1.0.1-py3-none-any.whl |
Total release size: 9.5 kB
Release files / numx-1.0.1.tar.gz
| Download URL | numx-1.0.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ded2a6813b78bcb81782d6c5e9969e3c2cb5aaf718bcf17cb337ce358fee3c18
|
|
BLAKE2b-256 checksum How to use checksums |
d6bfee6af32d7555e21ecafee09da6737f519ac5fba0fe4b4071226762b77519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1016-azure
|
Release files / numx-1.0.1-py3-none-any.whl
| Download URL | numx-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67d50b534a24c2bf7caff6d8da4ce1adec676ea3d40b04ad0031040be4512991
|
|
BLAKE2b-256 checksum How to use checksums |
44cdb3da1c4f9309b14ff0fadb99bab0805c9b7d875e045123b921dfaf255cab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1016-azure
|
Security for numx 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.