\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 r28145542 = x;
double r28145543 = y;
double r28145544 = r28145542 + r28145543;
double r28145545 = r28145544 * r28145544;
return r28145545;
}
double f(double x, double y) {
double r28145546 = x;
double r28145547 = y;
double r28145548 = r28145547 + r28145546;
double r28145549 = r28145546 * r28145548;
double r28145550 = r28145548 * r28145547;
double r28145551 = r28145549 + r28145550;
return r28145551;
}




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