complex_newton 0.1.0

newton's method for finding solutions of complex equations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use complex_newton::newton;
use num::Complex;

fn main() {
    let f = |x: Complex<f64>| x.powi(2) + 1.0;
    let x = Complex { re: 100.0, im: 0.0 };
    let a = Complex {
        re: 0.1e-5,
        im: 0.1e-5,
    };

    let r = newton(f, x, a);

    println!("{}", r);
}