Now I am working on implementing complex numbers for ANSI C, but some mathematical formulas need improvement because floating point numbers are prone to loss of precision. In my implementation, I prefer double
for represent of real numbers. I'm currently interested in the high-precision formula for division.
I looked at two possible approaches:
What other approaches exist?
Which implementation is the best?
How to choose an implementation for my project?