\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r622663 = x;
double r622664 = r622663 * r622663;
double r622665 = y;
double r622666 = r622664 + r622665;
double r622667 = r622666 + r622665;
return r622667;
}
double f(double x, double y) {
double r622668 = x;
double r622669 = r622668 * r622668;
double r622670 = 2.0;
double r622671 = y;
double r622672 = r622670 * r622671;
double r622673 = r622669 + r622672;
return r622673;
}




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 2019306 +o rules:numerics
(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))