Checks whether two complex numbers are equal.
@override bool operator ==(Object other) => other is complex && real == other.real && imag == other.imag;