\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r810660 = x;
double r810661 = r810660 * r810660;
double r810662 = y;
double r810663 = r810661 + r810662;
double r810664 = r810663 + r810662;
return r810664;
}
double f(double x, double y) {
double r810665 = x;
double r810666 = r810665 * r810665;
double r810667 = 2.0;
double r810668 = y;
double r810669 = r810667 * r810668;
double r810670 = r810666 + r810669;
return r810670;
}




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