\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r20454641 = x;
double r20454642 = r20454641 * r20454641;
double r20454643 = y;
double r20454644 = r20454642 + r20454643;
double r20454645 = r20454644 + r20454643;
return r20454645;
}
double f(double x, double y) {
double r20454646 = x;
double r20454647 = r20454646 * r20454646;
double r20454648 = y;
double r20454649 = r20454648 + r20454648;
double r20454650 = r20454647 + r20454649;
return r20454650;
}




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