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 r200004 = x;
double r200005 = r200004 * r200004;
double r200006 = y;
double r200007 = r200006 * r200006;
double r200008 = r200005 + r200007;
return r200008;
}
double f(double x, double y) {
double r200009 = y;
double r200010 = x;
double r200011 = hypot(r200009, r200010);
double r200012 = r200011 * r200011;
return r200012;
}



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