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 r111512 = x;
double r111513 = r111512 * r111512;
double r111514 = y;
double r111515 = r111514 * r111514;
double r111516 = r111513 + r111515;
return r111516;
}
double f(double x, double y) {
double r111517 = x;
double r111518 = y;
double r111519 = hypot(r111517, r111518);
double r111520 = r111519 * r111519;
return r111520;
}



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