\left(x + y\right) \cdot \left(x + y\right)
y \cdot \left(x + y\right) + \left(x + y\right) \cdot x
double f(double x, double y) {
double r550447 = x;
double r550448 = y;
double r550449 = r550447 + r550448;
double r550450 = r550449 * r550449;
return r550450;
}
double f(double x, double y) {
double r550451 = y;
double r550452 = x;
double r550453 = r550452 + r550451;
double r550454 = r550451 * r550453;
double r550455 = r550453 * r550452;
double r550456 = r550454 + r550455;
return r550456;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019179 +o rules:numerics
(FPCore (x y)
:name "Examples.Basics.BasicTests:f3 from sbv-4.4"
:herbie-target
(+ (* x x) (+ (* y y) (* 2.0 (* y x))))
(* (+ x y) (+ x y)))