\left(x + y\right) \cdot \left(x + y\right)
x \cdot x + y \cdot \left(x + \left(x + y\right)\right)
double f(double x, double y) {
double r731142 = x;
double r731143 = y;
double r731144 = r731142 + r731143;
double r731145 = r731144 * r731144;
return r731145;
}
double f(double x, double y) {
double r731146 = x;
double r731147 = r731146 * r731146;
double r731148 = y;
double r731149 = r731146 + r731148;
double r731150 = r731146 + r731149;
double r731151 = r731148 * r731150;
double r731152 = r731147 + r731151;
return r731152;
}




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
Applied associate-+l+0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020027
(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)))