\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r31673469 = x;
double r31673470 = r31673469 * r31673469;
double r31673471 = y;
double r31673472 = r31673470 + r31673471;
double r31673473 = r31673472 + r31673471;
return r31673473;
}
double f(double x, double y) {
double r31673474 = x;
double r31673475 = r31673474 * r31673474;
double r31673476 = y;
double r31673477 = r31673476 + r31673476;
double r31673478 = r31673475 + r31673477;
return r31673478;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
rmApplied fma-udef0.0
Applied associate-+l+0.0
Final simplification0.0
herbie shell --seed 2019172 +o rules:numerics
(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))