\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(x, x, y \cdot \mathsf{fma}\left(x, 2, y\right)\right)double f(double x, double y) {
double r461633 = x;
double r461634 = y;
double r461635 = r461633 + r461634;
double r461636 = r461635 * r461635;
return r461636;
}
double f(double x, double y) {
double r461637 = x;
double r461638 = y;
double r461639 = 2.0;
double r461640 = fma(r461637, r461639, r461638);
double r461641 = r461638 * r461640;
double r461642 = fma(r461637, r461637, r461641);
return r461642;
}




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
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019323 +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)))