conjugate method

  1. @override
Cartesian conjugate()
override

Return the conjugate of this complex number. The conjugate of a + bi is a - bi.

nan is returned if either the real or imaginary part of this Complex number equals double.nan.

If the imaginary part is infinite, and the real part is not NaN, the returned value has infinite imaginary part of the opposite sign, e.g. the conjugate of 1 + INFINITY i is 1 - NEGATIVE_INFINITY i`.

Implementation

@override
Cartesian conjugate() {
  if (isNaN) return Complex.nan;
  return Cartesian(real, -imaginary);
}