\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r597058 = x;
double r597059 = r597058 * r597058;
double r597060 = y;
double r597061 = r597059 + r597060;
double r597062 = r597061 + r597060;
return r597062;
}
double f(double x, double y) {
double r597063 = x;
double r597064 = r597063 * r597063;
double r597065 = 2.0;
double r597066 = y;
double r597067 = r597065 * r597066;
double r597068 = r597064 + r597067;
return r597068;
}




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