\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r35222325 = x;
double r35222326 = r35222325 * r35222325;
double r35222327 = y;
double r35222328 = r35222326 + r35222327;
double r35222329 = r35222328 + r35222327;
return r35222329;
}
double f(double x, double y) {
double r35222330 = x;
double r35222331 = r35222330 * r35222330;
double r35222332 = y;
double r35222333 = r35222332 + r35222332;
double r35222334 = r35222331 + r35222333;
return r35222334;
}




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