\left(x + y\right) \cdot \left(x + y\right)
x \cdot \left(x + y\right) + \left(x \cdot y + {y}^{2}\right)double f(double x, double y) {
double r604309 = x;
double r604310 = y;
double r604311 = r604309 + r604310;
double r604312 = r604311 * r604311;
return r604312;
}
double f(double x, double y) {
double r604313 = x;
double r604314 = y;
double r604315 = r604313 + r604314;
double r604316 = r604313 * r604315;
double r604317 = r604313 * r604314;
double r604318 = 2.0;
double r604319 = pow(r604314, r604318);
double r604320 = r604317 + r604319;
double r604321 = r604316 + r604320;
return r604321;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Simplified0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020081 +o rules:numerics
(FPCore (x y)
:name "Examples.Basics.BasicTests:f3 from sbv-4.4"
:precision binary64
:herbie-target
(+ (* x x) (+ (* y y) (* 2 (* y x))))
(* (+ x y) (+ x y)))