operator * method

  1. @override
Complex<num, num> operator *(
  1. Complex<num, num> other
)

Implementation

@override
Complex operator *(Complex other) {
  final iTotal = real * other.real - imaginary * other.imaginary;
  final jTotal = real * other.imaginary + imaginary * other.real;
  return Complex(iTotal, jTotal);
}