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 r182553 = x;
double r182554 = r182553 * r182553;
double r182555 = y;
double r182556 = r182555 * r182555;
double r182557 = r182554 + r182556;
return r182557;
}
double f(double x, double y) {
double r182558 = x;
double r182559 = y;
double r182560 = hypot(r182558, r182559);
double r182561 = r182560 * r182560;
return r182561;
}



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 2020062 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rasterific.Linear:$cquadrance from Rasterific-0.6.1"
:precision binary64
(+ (* x x) (* y y)))