\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r35455906 = x;
double r35455907 = r35455906 * r35455906;
double r35455908 = y;
double r35455909 = r35455907 + r35455908;
double r35455910 = r35455909 + r35455908;
return r35455910;
}
double f(double x, double y) {
double r35455911 = x;
double r35455912 = r35455911 * r35455911;
double r35455913 = y;
double r35455914 = r35455913 + r35455913;
double r35455915 = r35455912 + r35455914;
return r35455915;
}




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