nrp
This is a small package for computing roots of a given function using newton-raphson method.
The user needs to supply an initial root guess, the function as well as the first derivative of the function as callbacks.
Usage
(We are actively adding support for passing functions as callback.) Example:
from nrp import newton_raphson
from lpython import f64, i32
def check():
x0: f64 = 20.0
c: f64 = 3.0
maxiter: i32 = 20
x: f64
x = newton_raphson(x0, c, maxiter)
assert abs(x - 3.0) < 1e-5
check()
Metadata
Release files for nrp 0.0.1.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 |
|---|---|---|---|---|
| nrp-0.0.1.1.tar.gz | 3.0 kB | Without provenance | Details for nrp-0.0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nrp-0.0.1.1-py3-none-any.whl | Python 3 | none | any | Details for nrp-0.0.1.1-py3-none-any.whl |
Total release size: 5.8 kB
Release files / nrp-0.0.1.1.tar.gz
| Download URL | nrp-0.0.1.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
449239f5aa44184c8c4967577c58fced2ca8e0a9ca2c84e0b9c18d92e329c62d
|
|
BLAKE2b-256 checksum How to use checksums |
73c1fd9725644dc726f45f41315b0eec7b669af0a7a039e09d9e2a1618ebc992
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / nrp-0.0.1.1-py3-none-any.whl
| Download URL | nrp-0.0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4a61d366eb75b470781221b3c3a362b8897b47fba34701d507d76e76cb1e64f
|
|
BLAKE2b-256 checksum How to use checksums |
820c900ca7c24db4617cbaeec72af8fc04f361f9890c2c4fa50a84d1dfd245c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for nrp 0.0.1.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.