\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r32101033 = x;
double r32101034 = r32101033 * r32101033;
double r32101035 = y;
double r32101036 = r32101034 + r32101035;
double r32101037 = r32101036 + r32101035;
return r32101037;
}
double f(double x, double y) {
double r32101038 = x;
double r32101039 = r32101038 * r32101038;
double r32101040 = y;
double r32101041 = r32101040 + r32101040;
double r32101042 = r32101039 + r32101041;
return r32101042;
}




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