dual_num

Crates.iodual_num
lib.rsdual_num
version0.2.7
sourcesrc
created_at2017-06-05 14:34:53.973029
updated_at2019-04-03 13:06:50.621607
descriptionFully-featured Dual Number implementation with features for automatic differentiation of multivariate vectorial functions into gradients
homepage
repositoryhttps://github.com/novacrazy/dual_num
max_upload_size
id17831
size27,485
Nova (novacrazy)

documentation

https://docs.rs/dual_num/

README

dual_num Build Status

Fully-featured Dual Number implementation with features for automatic differentiation of multivariate vectorial functions into gradients.

Usage

extern crate dual_num;

use dual_num::{Dual, Float, differentiate};

fn main() {
    // find partial derivative at x=4.0
    println!("{:.5}", differentiate(4.0f64, |x| {
        x.sqrt() + Dual::from_real(1.0)
    })); // 0.25000
}
Previous Work
Commit count: 30

cargo fmt