3 ms·
Whenever people run benchmarks on numerical code, especially involving square root, I immediately wonder if the generated output is either ´correct’ or just app
by goalieca 5y ago
Whenever people run benchmarks on numerical code, especially involving square root, I immediately wonder if the generated output is either ´correct’ or just approximate.
- galangalalgol 5y agoi did notice in the benchmark game they were using fast math with a float and an iteration to get the inverse sqrt. but the c++ and rust examples were doing the same
- kaba0 5y agoThere is no ‘correct’ in floating point, just approximate. But I would guess that such a talented group as Julia’s would pay extreme attention to numerical stability/best implementation of algorithms, or fall back to a lib everyone uses already.