Closed guyrosin closed 7 months ago
Indeed, @guyrosin, the inconsistency exists. It comes naturally with the change in the order of arithmetic operations.
Any floating-point arithmetic accumulates error. The order of the operations will affects its sign and magnitude. For 99.9% of apps it shouldn't be a big deal, but if you are calculating ballistic trajectories - better use advanced math libraries with 128-bit floats and error-reduction techniques.
Got it, thanks for the explanation @ashvardanian! (I expected the differences to be smaller)
Results are sometimes different than
scipy.spatial.distance
. For example: (I checked using float64 and float32)Output: