dace 0.2.1

Rust wrapper of DACE, the Differential Algebra Computational Toolbox.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use dace::*;

fn main() {
    // initialize DACE for 20th-order computations in 1 variable
    DA::init(20, 2);

    // initialize x as DA
    let x = da!(1);

    // compute y = sin(x)
    let y = x.sin();

    // print x and y to screen
    println!("x\n{x}");
    println!("y = sin(x)\n{}", y);
}