\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r882344 = x;
double r882345 = r882344 * r882344;
double r882346 = y;
double r882347 = r882345 + r882346;
double r882348 = r882347 + r882346;
return r882348;
}
double f(double x, double y) {
double r882349 = x;
double r882350 = r882349 * r882349;
double r882351 = y;
double r882352 = r882351 + r882351;
double r882353 = r882350 + r882352;
return r882353;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied associate-+l+0.0
Final simplification0.0
herbie shell --seed 2020047
(FPCore (x y)
:name "Data.Random.Distribution.Normal:normalTail from random-fu-0.2.6.2"
:precision binary64
:herbie-target
(+ (+ y y) (* x x))
(+ (+ (* x x) y) y))