3 ms·
sqrt(x*x + y*y) loses a lot of precision if x and y differ greatly in magnitude.
by sjburt 6y ago
sqrt(x*x + y*y) loses a lot of precision if x and y differ greatly in magnitude.
- thethirdone 6y agoDo you have an example where this is true? I have not seen an example with > 2 ulp difference from the true value or > 1 ulp difference between the two algorithms.