piecewise-rational
Shape-preserving piecewise rational cubic interpolation using the Delbourgo-Gregory algorithm.
Installation
pip install piecewise-rational
Usage
from piecewise_rational import rational_cubic_interpolation
# Interpolate at x=0.5 given endpoints and derivatives
x_l, x_r = 0.0, 1.0 # interval
y_l, y_r = 0.0, 1.0 # values at endpoints
d_l, d_r = 1.0, 1.0 # derivatives at endpoints
r = 0.0 # control parameter
y = rational_cubic_interpolation(0.5, x_l, x_r, y_l, y_r, d_l, d_r, r)
Features
- Shape-preserving interpolation (maintains monotonicity and convexity)
- Control parameters for fitting second derivatives
- High numerical precision
References
- R. Delbourgo, J.A. Gregory, "Shape preserving piecewise rational interpolation", SIAM Journal on Scientific and Statistical Computing, 1985.
- Peter Jaeckel, "Let's Be Rational", www.jaeckel.org
License
MIT License. Python implementation derived from Peter Jaeckel's LetsBeRational.
Metadata
Release files for piecewise-rational 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 |
|---|---|---|---|---|
| piecewise_rational-1.0.0.tar.gz | 4.1 kB | Without provenance | Details for piecewise_rational-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| piecewise_rational-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for piecewise_rational-1.0.0-py3-none-any.whl |
Total release size: 9.6 kB
Release files / piecewise_rational-1.0.0.tar.gz
| Download URL | piecewise_rational-1.0.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6d9d9022b78fa689ac4a62045401c6d0489ca69c94ce55befe045e0bfd4d6da
|
|
BLAKE2b-256 checksum How to use checksums |
bd4897b958909077335ffdfbb5eae12c4125d2fcfd0fa0cac45c8f451ee1be5e
|
| 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 / piecewise_rational-1.0.0-py3-none-any.whl
| Download URL | piecewise_rational-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a972b0b9bb45acc78f1c8bc9a26575c002c79bee8da5811783890d9ed5902ed
|
|
BLAKE2b-256 checksum How to use checksums |
b30b7b20d417bcdea2f0ad0b2cac966d48ba03181a607977c5a4de8276b9eee9
|
| 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 piecewise-rational 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.