pub fn complex<R: Float>(re: R, im: R) -> Complex<R>Expand description
Construct a complex number from real and imaginary parts.
ยงExamples
use chainrules::complex;
use num_complex::Complex64;
assert_eq!(complex(3.0_f64, 4.0_f64), Complex64::new(3.0, 4.0));