\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 r709364 = x;
double r709365 = y;
double r709366 = r709364 + r709365;
double r709367 = r709366 * r709366;
return r709367;
}
double f(double x, double y) {
double r709368 = x;
double r709369 = y;
double r709370 = r709368 + r709369;
double r709371 = r709370 * r709370;
return r709371;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Final simplification0.0
herbie shell --seed 2020018
(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)))