A few ad hoc numeric alogrithms: factors and primes.
Latest release 20220606: New intif(f): int(f) if that equals f, otherwise f.
Function factors(n)
Generator yielding the prime factors of n in order from lowest to highest.
Function intif(f: float)
Return int(f) if that equals f, otherwise f.
Function primes()
Generator yielding the primes in order starting at 2.
Release Log
Release 20220606: New intif(f): int(f) if that equals f, otherwise f.
Release 20190309: Superficial changes.
Release 20150311.2: Added RST doco for cs.numeric.
Release 20150311: Initial release with primes() and factors().
Release files for cs.numeric 20220606
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cs.numeric-20220606.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cs.numeric-20220606-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.7 kB
Release files / cs.numeric-20220606.tar.gz
| Download URL | cs.numeric-20220606.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ceb73ea4728333eed9dcf2fd795d9baf174f7e049f22a2e646a613edc9d17177
|
|
BLAKE2b-256 checksum How to use checksums |
b56eb391c13f6b9150b8cb749534644b10e5c96ab189b2afb199e0482e6a5681
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Release files / cs.numeric-20220606-py3-none-any.whl
| Download URL | cs.numeric-20220606-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d239b244a39e2537a512ffb352e607b11f17d80b8119d6d5b3be678d6704b1f1
|
|
BLAKE2b-256 checksum How to use checksums |
82fe5e516fd1cac449459c4acac3d502b6d218b9f45b4921aaeb4641056bbba0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|