\left(x + y\right) \cdot \left(x + y\right)
{x}^{2} + \left({y}^{2} + 2 \cdot \left(x \cdot y\right)\right)double f(double x, double y) {
double r605866 = x;
double r605867 = y;
double r605868 = r605866 + r605867;
double r605869 = r605868 * r605868;
return r605869;
}
double f(double x, double y) {
double r605870 = x;
double r605871 = 2.0;
double r605872 = pow(r605870, r605871);
double r605873 = y;
double r605874 = pow(r605873, r605871);
double r605875 = r605870 * r605873;
double r605876 = r605871 * r605875;
double r605877 = r605874 + r605876;
double r605878 = r605872 + r605877;
return r605878;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied flip-+0.0
Applied associate-*r/18.6
Simplified18.6
Taylor expanded around 0 0.0
Final simplification0.0
herbie shell --seed 2020036
(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)))