\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r623163 = x;
double r623164 = r623163 * r623163;
double r623165 = y;
double r623166 = r623164 + r623165;
double r623167 = r623166 + r623165;
return r623167;
}
double f(double x, double y) {
double r623168 = x;
double r623169 = r623168 * r623168;
double r623170 = 2.0;
double r623171 = y;
double r623172 = r623170 * r623171;
double r623173 = r623169 + r623172;
return r623173;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied associate-+l+0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019198
(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))