\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r39641965 = x;
double r39641966 = r39641965 * r39641965;
double r39641967 = y;
double r39641968 = r39641966 + r39641967;
double r39641969 = r39641968 + r39641967;
return r39641969;
}
double f(double x, double y) {
double r39641970 = x;
double r39641971 = r39641970 * r39641970;
double r39641972 = y;
double r39641973 = r39641972 + r39641972;
double r39641974 = r39641971 + r39641973;
return r39641974;
}




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