\left(x + y\right) \cdot \left(x + y\right)
x \cdot \left(x + y\right) + \left(y \cdot x + {y}^{2}\right)double f(double x, double y) {
double r3109 = x;
double r3110 = y;
double r3111 = r3109 + r3110;
double r3112 = r3111 * r3111;
return r3112;
}
double f(double x, double y) {
double r3113 = x;
double r3114 = y;
double r3115 = r3113 + r3114;
double r3116 = r3113 * r3115;
double r3117 = r3114 * r3113;
double r3118 = 2.0;
double r3119 = pow(r3114, r3118);
double r3120 = r3117 + r3119;
double r3121 = r3116 + r3120;
return r3121;
}




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
Final simplification0.0
herbie shell --seed 2020025 +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)))