x \cdot x + y \cdot y
\mathsf{hypot}\left(y, x\right) \cdot \mathsf{hypot}\left(y, x\right)double f(double x, double y) {
double r114638 = x;
double r114639 = r114638 * r114638;
double r114640 = y;
double r114641 = r114640 * r114640;
double r114642 = r114639 + r114641;
return r114642;
}
double f(double x, double y) {
double r114643 = y;
double r114644 = x;
double r114645 = hypot(r114643, r114644);
double r114646 = r114645 * r114645;
return r114646;
}



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