Why the conjugate complex number of -1+0i is displayed as -1+-0i ???
This is totally irritating... the conjugate complex number of -1+0i is -1-0i
I am using external crate num_complex version 0.4
([dependencies]
num-complex = "0.4")
and I tested the following code:
extern crate num_complex;
use num_complex::Complex;
fn main() {
let z1 = Complex::new(-1.0, 0.0);
let conjugate = z1.conj();
println!("Complex number z1: {}", z1);
println!("Conjugate: {}", conjugate);
}
and I get the following output:
Finished dev [unoptimized + debuginfo] target(s) in 0.01s
Running /Users/ralf/projects/Rust/complex/target/debug/complex
Complex number z1: -1+0i
Conjugate: -1+-0i
(program exited with code: 0)
Press return to continue