\left(x + y\right) \cdot \left(x + y\right)
y \cdot \mathsf{fma}\left(x, 2, y\right) + x \cdot xdouble f(double x, double y) {
double r352920 = x;
double r352921 = y;
double r352922 = r352920 + r352921;
double r352923 = r352922 * r352922;
return r352923;
}
double f(double x, double y) {
double r352924 = y;
double r352925 = x;
double r352926 = 2.0;
double r352927 = fma(r352925, r352926, r352924);
double r352928 = r352924 * r352927;
double r352929 = r352925 * r352925;
double r352930 = r352928 + r352929;
return r352930;
}




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
rmApplied fma-udef0.0
Final simplification0.0
herbie shell --seed 2019304 +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)))