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 r174406 = x;
double r174407 = r174406 * r174406;
double r174408 = y;
double r174409 = r174408 * r174408;
double r174410 = r174407 + r174409;
return r174410;
}
double f(double x, double y) {
double r174411 = y;
double r174412 = x;
double r174413 = hypot(r174411, r174412);
double r174414 = r174413 * r174413;
return r174414;
}



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