\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r36393751 = x;
double r36393752 = r36393751 * r36393751;
double r36393753 = y;
double r36393754 = r36393752 + r36393753;
double r36393755 = r36393754 + r36393753;
return r36393755;
}
double f(double x, double y) {
double r36393756 = x;
double r36393757 = r36393756 * r36393756;
double r36393758 = y;
double r36393759 = r36393758 + r36393758;
double r36393760 = r36393757 + r36393759;
return r36393760;
}




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