\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r1042685 = x;
double r1042686 = r1042685 * r1042685;
double r1042687 = y;
double r1042688 = r1042686 + r1042687;
double r1042689 = r1042688 + r1042687;
return r1042689;
}
double f(double x, double y) {
double r1042690 = x;
double r1042691 = r1042690 * r1042690;
double r1042692 = y;
double r1042693 = r1042692 + r1042692;
double r1042694 = r1042691 + r1042693;
return r1042694;
}




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