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 r203140 = x;
double r203141 = r203140 * r203140;
double r203142 = y;
double r203143 = r203142 * r203142;
double r203144 = r203141 + r203143;
return r203144;
}
double f(double x, double y) {
double r203145 = y;
double r203146 = x;
double r203147 = hypot(r203145, r203146);
double r203148 = r203147 * r203147;
return r203148;
}



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