operator * method
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);
}
@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);
}