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 r141065 = x;
double r141066 = r141065 * r141065;
double r141067 = y;
double r141068 = r141067 * r141067;
double r141069 = r141066 + r141068;
return r141069;
}
double f(double x, double y) {
double r141070 = x;
double r141071 = y;
double r141072 = hypot(r141070, r141071);
double r141073 = r141072 * r141072;
return r141073;
}



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