Re:Floating point error is the least of my worries (2011)
by ajross on Thursday February 22, 2018 @01:48AM
(#16435709)
The point was more that problems that need to use atan() in a context where the line may point near the Y axis don't flip out over "floating point precision", they just use atan2().
Problems like the one in the grandparent that need to intersect nearly-parallel lines (or subspaces) use special techniques better suited to the problem and don't just feed it to a linear solver.
The fact that it avoids the division by 0 is a convenient side effect of also being more correct.
(I'm just guessing; I don't know the actual history of it.)