rs-sci 0.2.0

the scientific library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 1. fix units
// 2. better complex numbers
// 3. custom algebraic structures
// 4. better display
//

use complex::Complex;
use rs_sci::*;

fn main() {
    let a: Complex<f32> = complex!(2.0, 3.0);
    let b: Complex<f32> = complex!(2.0) + im!(3.0);
    println!("{}={}", a, b);
}