\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r517365 = x;
double r517366 = r517365 * r517365;
double r517367 = y;
double r517368 = r517366 + r517367;
double r517369 = r517368 + r517367;
return r517369;
}
double f(double x, double y) {
double r517370 = x;
double r517371 = r517370 * r517370;
double r517372 = 2.0;
double r517373 = y;
double r517374 = r517372 * r517373;
double r517375 = r517371 + r517374;
return r517375;
}




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 2019209 +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))