\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 r29554823 = x;
double r29554824 = y;
double r29554825 = r29554823 + r29554824;
double r29554826 = r29554825 * r29554825;
return r29554826;
}
double f(double x, double y) {
double r29554827 = x;
double r29554828 = y;
double r29554829 = r29554828 + r29554827;
double r29554830 = r29554827 * r29554829;
double r29554831 = r29554829 * r29554828;
double r29554832 = r29554830 + r29554831;
return r29554832;
}




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
Final simplification0.0
herbie shell --seed 2019168
(FPCore (x y)
:name "Examples.Basics.BasicTests:f3 from sbv-4.4"
:herbie-target
(+ (* x x) (+ (* y y) (* 2 (* y x))))
(* (+ x y) (+ x y)))