num_dual - generalized (hyper) dual numbers in python
Using dual numbers, you can compute exact derivatives of functions without writing analytical derivatives or using numeric differentiation.
Installation
You can install num_dual from PyPI using pip:
`
pip install num_dual
`
Build from source
To build the code from source, you need the rust compiler and maturin. You can then install the latest master directly from github:
`
pip install git+https://github.com/itt-ustutt/num_dual
`
- Examples
- API
- num_dual.first_derivative
- num_dual.gradient
- num_dual.jacobian
- num_dual.second_derivative
- num_dual.hessian
- num_dual.third_derivative
- num_dual.second_partial_derivative
- num_dual.partial_hessian
- num_dual.third_partial_derivative
- num_dual.third_partial_derivative_vec
- num_dual.Dual64
- num_dual.HyperDual64
- num_dual.Dual2_64
- num_dual.Dual3_64
- num_dual.HyperHyperDual64