cody-special
High-precision error functions and normal distribution implementations based on W.J. Cody's rational Chebyshev approximations.
Installation
pip install cody-special
Usage
from cody_special import erf_cody, erfc_cody, erfcx_cody
from cody_special import norm_pdf, norm_cdf, inverse_norm_cdf
# Error functions
erf_cody(1.0) # ~ 0.8427
erfc_cody(1.0) # ~ 0.1573
erfcx_cody(1.0) # ~ 0.4276
# Normal distribution
norm_pdf(0.0) # ~ 0.3989 (standard normal PDF)
norm_cdf(0.0) # = 0.5 (standard normal CDF)
inverse_norm_cdf(0.5) # = 0.0 (inverse CDF / quantile function)
References
- W.J. Cody, "Rational Chebyshev approximations for the error function", Math. Comp., 1969, pp. 631-638.
- Peter Jaeckel, "Let's Be Rational", www.jaeckel.org
License
MIT License. Original algorithm by W.J. Cody. Python implementation derived from Peter Jaeckel's LetsBeRational.
Metadata
Release files for cody-special 1.0.0
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 |
|---|---|---|---|---|
| cody_special-1.0.0.tar.gz | 7.0 kB | Without provenance | Details for cody_special-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cody_special-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for cody_special-1.0.0-py3-none-any.whl |
Total release size: 16.0 kB
Release files / cody_special-1.0.0.tar.gz
| Download URL | cody_special-1.0.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
795f9268155b845310855f76d9a0d63dabb6fe5f1c3d3fc10814b38eefa5d537
|
|
BLAKE2b-256 checksum How to use checksums |
ced298a4c5409f66d021c590102c5839434dd1880d36a248a2d61342976cfaff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.12.2 Darwin/24.6.0
|
Release files / cody_special-1.0.0-py3-none-any.whl
| Download URL | cody_special-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a871562b9cdfb7826ec514c90d8dec175704e58ccffa0341f45194e6d4fc6102
|
|
BLAKE2b-256 checksum How to use checksums |
11892d787764e8fdc1302d2989a4bef5812e1af8bc6773f58d1a742fe8cfe5a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.12.2 Darwin/24.6.0
|
Security for cody-special 1.0.0
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.