\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r987572 = x;
double r987573 = r987572 * r987572;
double r987574 = y;
double r987575 = r987573 + r987574;
double r987576 = r987575 + r987574;
return r987576;
}
double f(double x, double y) {
double r987577 = x;
double r987578 = r987577 * r987577;
double r987579 = y;
double r987580 = r987579 + r987579;
double r987581 = r987578 + r987580;
return r987581;
}




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