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 r180902 = x;
double r180903 = r180902 * r180902;
double r180904 = y;
double r180905 = r180904 * r180904;
double r180906 = r180903 + r180905;
return r180906;
}
double f(double x, double y) {
double r180907 = x;
double r180908 = y;
double r180909 = hypot(r180907, r180908);
double r180910 = r180909 * r180909;
return r180910;
}



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