\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r631304 = x;
double r631305 = r631304 * r631304;
double r631306 = y;
double r631307 = r631305 + r631306;
double r631308 = r631307 + r631306;
return r631308;
}
double f(double x, double y) {
double r631309 = x;
double r631310 = r631309 * r631309;
double r631311 = 2.0;
double r631312 = y;
double r631313 = r631311 * r631312;
double r631314 = r631310 + r631313;
return r631314;
}




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 2019212
(FPCore (x y)
:name "Data.Random.Distribution.Normal:normalTail from random-fu-0.2.6.2"
:precision binary64
:herbie-target
(+ (+ y y) (* x x))
(+ (+ (* x x) y) y))