\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 r770030 = x;
double r770031 = y;
double r770032 = r770030 + r770031;
double r770033 = r770032 * r770032;
return r770033;
}
double f(double x, double y) {
double r770034 = x;
double r770035 = 2.0;
double r770036 = pow(r770034, r770035);
double r770037 = y;
double r770038 = pow(r770037, r770035);
double r770039 = r770034 * r770037;
double r770040 = r770035 * r770039;
double r770041 = r770038 + r770040;
double r770042 = r770036 + r770041;
return r770042;
}




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 flip-+0.1
Applied frac-times34.6
Taylor expanded around 0 0.0
Final simplification0.0
herbie shell --seed 2020062
(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)))