pub fn compdiv<T: Number>(a: T, b: T, c: T, d: T) -> (T, T)
Expand description

Division between complex numbers that avoids overflows.

Arguments

  • a - Dividend real part
  • b - Dividend imaginary part
  • c - Divisor real part
  • d - Divisor imaginary part

Michael Baudin, Robert L. Smith, A Robust Complex Division in Scilab, 2012, arXiv:1210.4539v2 [cs.MS]