\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r618607 = x;
double r618608 = r618607 * r618607;
double r618609 = y;
double r618610 = r618608 + r618609;
double r618611 = r618610 + r618609;
return r618611;
}
double f(double x, double y) {
double r618612 = x;
double r618613 = r618612 * r618612;
double r618614 = 2.0;
double r618615 = y;
double r618616 = r618614 * r618615;
double r618617 = r618613 + r618616;
return r618617;
}




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
Simplified0.0
Final simplification0.0
herbie shell --seed 2019195
(FPCore (x y)
:name "Data.Random.Distribution.Normal:normalTail from random-fu-0.2.6.2"
:herbie-target
(+ (+ y y) (* x x))
(+ (+ (* x x) y) y))