dualnum
Python bindings for the num-dual rust crate.
Installation
pip install dualnum
Installation from source
To install from source, you need to have the rust compiler installed.
pip install git+https://github.com/itt-ustutt/dualnum
Sphinx documentation
To build the documentation with sphinx:
maturin develop --release
cd docs
make html
make doctest
firefox _build/html/index.html
Usage
Compute first and second derivative of a scalar valued function.
from dualnum import derive2
import numpy as np
def f(x):
return np.exp(x) / np.sqrt(np.sin(x)**3 + np.cos(x)**3)
x = derive2(1.5)
result = f(x)
print('f(x) = {}'.format(result.value))
print('df/dx = {}'.format(result.first_derivative))
print('d2f/dx2 = {}'.format(result.second_derivative))
Metadata
Release files for dualnum 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| dualnum-0.2.1-cp36-abi3-win_amd64.whl | CPython 3.6 | abi3 | Windows x86-64 | Details for dualnum-0.2.1-cp36-abi3-win_amd64.whl |
| dualnum-0.2.1-cp36-abi3-win32.whl | CPython 3.6 | abi3 | Windows x86-32 | Details for dualnum-0.2.1-cp36-abi3-win32.whl |
| dualnum-0.2.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl | CPython 3.6 | abi3 | Linux glibc 2.5+ x86-64 | Details for dualnum-0.2.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
| dualnum-0.2.1-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl | CPython 3.6 | abi3 | macOS 11.0+ ARM64, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64 | Details for dualnum-0.2.1-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
| dualnum-0.2.1-cp36-abi3-macosx_10_7_x86_64.whl | CPython 3.6 | abi3 | macOS 10.7+ x86-64 | Details for dualnum-0.2.1-cp36-abi3-macosx_10_7_x86_64.whl |
Total release size: 10.4 MB
Release files / dualnum-0.2.1-cp36-abi3-win_amd64.whl
| Download URL | dualnum-0.2.1-cp36-abi3-win_amd64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.6 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
cffffcb1865c1eabbd7a2971e07f5439195419d75bc499a2cec522a9ca11cd46
|
|
BLAKE2b-256 checksum How to use checksums |
f9f73d340629613812711365687d3b316a08788a44ea7ad502e668965cf1673d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / dualnum-0.2.1-cp36-abi3-win32.whl
| Download URL | dualnum-0.2.1-cp36-abi3-win32.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.6 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
df3100ce04ff0578fed92c010ce2686aae2f69fea207a8ecfd882d5ce2f27860
|
|
BLAKE2b-256 checksum How to use checksums |
54b744ce5707153942af84545730b31c53b5f10f21ab713779fdaf7b37890d2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / dualnum-0.2.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | dualnum-0.2.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.6 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d43b6ed6d4fb5c2426f9933acfc314cf26630247cb1dabd897d5208b2cad8a5f
|
|
BLAKE2b-256 checksum How to use checksums |
3d1ff2ca42ecd1a2c51b390c6e6acd10ddc10592272eab35c89a70e664fef661
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / dualnum-0.2.1-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | dualnum-0.2.1-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.6 abi3 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3300699ed4f70eb0b17dfe0bad9b9b3f63aa92adfe916534f5ddbe623ca27191
|
|
BLAKE2b-256 checksum How to use checksums |
a93a9aa7f047e362d41f0a121e4fabdcc8037749883e22a17647f575912b875b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / dualnum-0.2.1-cp36-abi3-macosx_10_7_x86_64.whl
| Download URL | dualnum-0.2.1-cp36-abi3-macosx_10_7_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.6 abi3 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
ee482b73d51fa611278be6763f85033113a1773c15751651d5569410f8d80b55
|
|
BLAKE2b-256 checksum How to use checksums |
89bd33aa0b4d01e56a747b35930d81ec7b614cf5a5afe88af854b45d26096a37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for dualnum 0.2.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.