\left(x + y\right) \cdot \left(x + y\right)
x \cdot \left(y + x\right) + \left(y + x\right) \cdot y
double f(double x, double y) {
double r35117248 = x;
double r35117249 = y;
double r35117250 = r35117248 + r35117249;
double r35117251 = r35117250 * r35117250;
return r35117251;
}
double f(double x, double y) {
double r35117252 = x;
double r35117253 = y;
double r35117254 = r35117253 + r35117252;
double r35117255 = r35117252 * r35117254;
double r35117256 = r35117254 * r35117253;
double r35117257 = r35117255 + r35117256;
return r35117257;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied distribute-rgt-in0.0
Final simplification0.0
herbie shell --seed 2019179
(FPCore (x y)
:name "Examples.Basics.BasicTests:f3 from sbv-4.4"
:herbie-target
(+ (* x x) (+ (* y y) (* 2.0 (* y x))))
(* (+ x y) (+ x y)))