\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 r427860 = x;
double r427861 = y;
double r427862 = r427860 + r427861;
double r427863 = r427862 * r427862;
return r427863;
}
double f(double x, double y) {
double r427864 = x;
double r427865 = y;
double r427866 = 2.0;
double r427867 = fma(r427864, r427866, r427865);
double r427868 = r427865 * r427867;
double r427869 = fma(r427864, r427864, r427868);
return r427869;
}




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 2019208 +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)))