\left(x + y\right) \cdot \left(x + y\right)
\left({x}^{2} + {y}^{2}\right) + 2 \cdot \left(x \cdot y\right)double f(double x, double y) {
double r849620 = x;
double r849621 = y;
double r849622 = r849620 + r849621;
double r849623 = r849622 * r849622;
return r849623;
}
double f(double x, double y) {
double r849624 = x;
double r849625 = 2.0;
double r849626 = pow(r849624, r849625);
double r849627 = y;
double r849628 = pow(r849627, r849625);
double r849629 = r849626 + r849628;
double r849630 = r849624 * r849627;
double r849631 = r849625 * r849630;
double r849632 = r849629 + r849631;
return r849632;
}




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
Taylor expanded around 0 0.0
rmApplied associate-+r+0.0
Final simplification0.0
herbie shell --seed 2019353
(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)))