\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 r865974 = x;
double r865975 = y;
double r865976 = r865974 + r865975;
double r865977 = r865976 * r865976;
return r865977;
}
double f(double x, double y) {
double r865978 = y;
double r865979 = x;
double r865980 = 2.0;
double r865981 = fma(r865979, r865980, r865978);
double r865982 = r865979 * r865979;
double r865983 = fma(r865978, r865981, r865982);
return r865983;
}




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