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 r178694 = x;
double r178695 = r178694 * r178694;
double r178696 = y;
double r178697 = r178696 * r178696;
double r178698 = r178695 + r178697;
return r178698;
}
double f(double x, double y) {
double r178699 = x;
double r178700 = y;
double r178701 = hypot(r178699, r178700);
double r178702 = r178701 * r178701;
return r178702;
}



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