peroxide 0.32.1

Rust comprehensive scientific computation library contains linear algebra, numerical analysis, statistics and machine learning tools with farmiliar syntax
Documentation
use peroxide::fuga::*;

fn main() {
    let x = AD2(1f64, 1f64, 0f64);
    let y = AD2(1f64, 1f64, 0f64);
    let x0 = AD2(1f64, 0f64, 0f64);
    let y0 = AD2(1f64, 0f64, 0f64);

    let dy = f(x, y);
    dy.print();

    let dy0 = f(x0, y0);
    dy0.print();
}

fn f(x: AD, y: AD) -> AD {
    (1f64 - x).powi(2) + 5f64 * (y - x.powi(2)).powi(2)
}