\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(x, x, \mathsf{fma}\left(x, 2, y\right) \cdot y\right)double f(double x, double y) {
double r631624 = x;
double r631625 = y;
double r631626 = r631624 + r631625;
double r631627 = r631626 * r631626;
return r631627;
}
double f(double x, double y) {
double r631628 = x;
double r631629 = 2.0;
double r631630 = y;
double r631631 = fma(r631628, r631629, r631630);
double r631632 = r631631 * r631630;
double r631633 = fma(r631628, r631628, r631632);
return r631633;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Simplified0.0
Taylor expanded around 0 0.0
Simplified0.0
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020057 +o rules:numerics
(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)))