\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r763013 = x;
double r763014 = r763013 * r763013;
double r763015 = y;
double r763016 = r763014 + r763015;
double r763017 = r763016 + r763015;
return r763017;
}
double f(double x, double y) {
double r763018 = x;
double r763019 = r763018 * r763018;
double r763020 = y;
double r763021 = r763020 + r763020;
double r763022 = r763019 + r763021;
return r763022;
}




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