I think this is an case of trying to prematurely optimize your code.
Handling all potentially complex numbers as purely complex isn't that slow. It's definitely not slow compared to the checks...
Type: Posts; User: helloworld922
I think this is an case of trying to prematurely optimize your code.
Handling all potentially complex numbers as purely complex isn't that slow. It's definitely not slow compared to the checks...
Why not have every number be complex? By definition a real number is just a complex number with a zero imaginary part.