Hacker News new | ask | show | jobs
by pixl97 64 days ago
Eh that sounds a bit different to me, multiplication should be roughly the same operator on each test, these are wildly different functions.
2 comments

You forgot about NaNs (all of them), infinities and positive/negative zeros. Tests warranted.
Don't forget the Intel floating-point division bug from the 90s.

https://en.wikipedia.org/wiki/Pentium_FDIV_bug

I was being a bit hyperbolic.

However, sampling really is the way to go when you face a combinatorial explosion. (If you can't prove it correct, that is.)