\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 r903266 = x;
double r903267 = y;
double r903268 = r903266 + r903267;
double r903269 = r903268 * r903268;
return r903269;
}
double f(double x, double y) {
double r903270 = x;
double r903271 = y;
double r903272 = r903270 + r903271;
double r903273 = r903270 * r903272;
double r903274 = r903270 * r903271;
double r903275 = 2.0;
double r903276 = pow(r903271, r903275);
double r903277 = r903274 + r903276;
double r903278 = r903273 + r903277;
return r903278;
}




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