\left(x + y\right) \cdot \left(x + y\right)
\left({x}^{2} + x \cdot y\right) + \left(x \cdot y + {y}^{2}\right)double f(double x, double y) {
double r624137 = x;
double r624138 = y;
double r624139 = r624137 + r624138;
double r624140 = r624139 * r624139;
return r624140;
}
double f(double x, double y) {
double r624141 = x;
double r624142 = 2.0;
double r624143 = pow(r624141, r624142);
double r624144 = y;
double r624145 = r624141 * r624144;
double r624146 = r624143 + r624145;
double r624147 = pow(r624144, r624142);
double r624148 = r624145 + r624147;
double r624149 = r624146 + r624148;
return r624149;
}




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
rmApplied distribute-lft-in0.0
Simplified0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020100 +o rules:numerics
(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)))