\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r31724025 = x;
double r31724026 = r31724025 * r31724025;
double r31724027 = y;
double r31724028 = r31724026 + r31724027;
double r31724029 = r31724028 + r31724027;
return r31724029;
}
double f(double x, double y) {
double r31724030 = x;
double r31724031 = r31724030 * r31724030;
double r31724032 = y;
double r31724033 = r31724032 + r31724032;
double r31724034 = r31724031 + r31724033;
return r31724034;
}




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