\left(x + y\right) \cdot \left(x + y\right)
\left(x + y\right) \cdot x + \left(x + y\right) \cdot y
double f(double x, double y) {
double r378353 = x;
double r378354 = y;
double r378355 = r378353 + r378354;
double r378356 = r378355 * r378355;
return r378356;
}
double f(double x, double y) {
double r378357 = x;
double r378358 = y;
double r378359 = r378357 + r378358;
double r378360 = r378359 * r378357;
double r378361 = r378359 * r378358;
double r378362 = r378360 + r378361;
return r378362;
}




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