x \cdot x + y \cdot y
\mathsf{hypot}\left(x, y\right) \cdot \mathsf{hypot}\left(x, y\right)double f(double x, double y) {
double r225248 = x;
double r225249 = r225248 * r225248;
double r225250 = y;
double r225251 = r225250 * r225250;
double r225252 = r225249 + r225251;
return r225252;
}
double f(double x, double y) {
double r225253 = x;
double r225254 = y;
double r225255 = hypot(r225253, r225254);
double r225256 = r225255 * r225255;
return r225256;
}



Bits error versus x



Bits error versus y
Results
Initial program 0.0
Simplified0.0
rmApplied add-sqr-sqrt0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020057 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rasterific.Linear:$cquadrance from Rasterific-0.6.1"
:precision binary64
(+ (* x x) (* y y)))