\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 r608350 = x;
double r608351 = y;
double r608352 = r608350 + r608351;
double r608353 = r608352 * r608352;
return r608353;
}
double f(double x, double y) {
double r608354 = x;
double r608355 = y;
double r608356 = r608354 + r608355;
double r608357 = r608354 * r608356;
double r608358 = r608354 * r608355;
double r608359 = 2.0;
double r608360 = pow(r608355, r608359);
double r608361 = r608358 + r608360;
double r608362 = r608357 + r608361;
return r608362;
}




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