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 r222658 = x;
double r222659 = r222658 * r222658;
double r222660 = y;
double r222661 = r222660 * r222660;
double r222662 = r222659 + r222661;
return r222662;
}
double f(double x, double y) {
double r222663 = x;
double r222664 = y;
double r222665 = hypot(r222663, r222664);
double r222666 = r222665 * r222665;
return r222666;
}



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)))