\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r30883654 = x;
double r30883655 = r30883654 * r30883654;
double r30883656 = y;
double r30883657 = r30883655 + r30883656;
double r30883658 = r30883657 + r30883656;
return r30883658;
}
double f(double x, double y) {
double r30883659 = x;
double r30883660 = r30883659 * r30883659;
double r30883661 = y;
double r30883662 = r30883661 + r30883661;
double r30883663 = r30883660 + r30883662;
return r30883663;
}




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