\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r481408 = x;
double r481409 = r481408 * r481408;
double r481410 = y;
double r481411 = r481409 + r481410;
double r481412 = r481411 + r481410;
return r481412;
}
double f(double x, double y) {
double r481413 = x;
double r481414 = r481413 * r481413;
double r481415 = 2.0;
double r481416 = y;
double r481417 = r481415 * r481416;
double r481418 = r481414 + r481417;
return r481418;
}




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 2019323
(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))