\left(x + y\right) \cdot \left(x + y\right)
y \cdot y + x \cdot \left(x + y \cdot 2\right)
double f(double x, double y) {
double r384624 = x;
double r384625 = y;
double r384626 = r384624 + r384625;
double r384627 = r384626 * r384626;
return r384627;
}
double f(double x, double y) {
double r384628 = y;
double r384629 = r384628 * r384628;
double r384630 = x;
double r384631 = 2.0;
double r384632 = r384628 * r384631;
double r384633 = r384630 + r384632;
double r384634 = r384630 * r384633;
double r384635 = r384629 + r384634;
return r384635;
}




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
Taylor expanded around 0 0.0
Simplified0.0
rmApplied distribute-lft-in0.0
Applied associate-+l+0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019325
(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)))