\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(y, \mathsf{fma}\left(x, 2, y\right), x \cdot x\right)double f(double x, double y) {
double r424728 = x;
double r424729 = y;
double r424730 = r424728 + r424729;
double r424731 = r424730 * r424730;
return r424731;
}
double f(double x, double y) {
double r424732 = y;
double r424733 = x;
double r424734 = 2.0;
double r424735 = fma(r424733, r424734, r424732);
double r424736 = r424733 * r424733;
double r424737 = fma(r424732, r424735, r424736);
return r424737;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019322 +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)))