\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r36347919 = x;
double r36347920 = r36347919 * r36347919;
double r36347921 = y;
double r36347922 = r36347920 + r36347921;
double r36347923 = r36347922 + r36347921;
return r36347923;
}
double f(double x, double y) {
double r36347924 = x;
double r36347925 = r36347924 * r36347924;
double r36347926 = y;
double r36347927 = r36347926 + r36347926;
double r36347928 = r36347925 + r36347927;
return r36347928;
}




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