Example of a floating point error bug from today that fixed point wouldn’t have helped: I’m calculating the bisector of two vectors a and b. |a|b + b|a| is numerically unstable if vectors are nearly opposite (and fails entirely if vectors are exactly opposite).
-
Show this thread
-
(Correct solution is to invert one vector, rotate them 90 degrees, and then calculate the bisector. This is numerically stable with both floating point and fixed point.)
3 replies 0 retweets 15 likesShow this thread -
Replying to @pcwalton
Quick attempt to visualize this idea (with equal length vectors): https://www.desmos.com/geometry/8qjwtw8qqw …pic.twitter.com/Oat8ZSWZDP
1 reply 1 retweet 8 likes
Replying to @shapeoperator
Yup. Credit to FreeType for the technique :)
2:46 PM - 6 Feb 2019
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.