\left(x \cdot x + y\right) + y
x \cdot x + \left(y + y\right)
double f(double x, double y) {
double r800336 = x;
double r800337 = r800336 * r800336;
double r800338 = y;
double r800339 = r800337 + r800338;
double r800340 = r800339 + r800338;
return r800340;
}
double f(double x, double y) {
double r800341 = x;
double r800342 = r800341 * r800341;
double r800343 = y;
double r800344 = r800343 + r800343;
double r800345 = r800342 + r800344;
return r800345;
}




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
Final simplification0.0
herbie shell --seed 2020036 +o rules:numerics
(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))