\left(x + y\right) \cdot \left(x + y\right)
\left(x + y\right) \cdot \left(x + y\right)
double f(double x, double y) {
double r566740 = x;
double r566741 = y;
double r566742 = r566740 + r566741;
double r566743 = r566742 * r566742;
return r566743;
}
double f(double x, double y) {
double r566744 = x;
double r566745 = y;
double r566746 = r566744 + r566745;
double r566747 = r566746 * r566746;
return r566747;
}




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
rmApplied associate-+r+0.0
Final simplification0.0
herbie shell --seed 2019294
(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)))