\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r541485 = x;
double r541486 = r541485 * r541485;
double r541487 = y;
double r541488 = r541486 + r541487;
double r541489 = r541488 + r541487;
return r541489;
}
double f(double x, double y) {
double r541490 = x;
double r541491 = r541490 * r541490;
double r541492 = 2.0;
double r541493 = y;
double r541494 = r541492 * r541493;
double r541495 = r541491 + r541494;
return r541495;
}




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