An important motivation for custom complex types is for use with non-floating-point real and imaginary type. The most general test of this would be with a custom non-arithmetic type, but integral types are also a classic use case (the "Gaussian integers").
An important motivation for custom complex types is for use with non-floating-point real and imaginary type. The most general test of this would be with a custom non-arithmetic type, but integral types are also a classic use case (the "Gaussian integers").