\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 r373905 = x;
double r373906 = y;
double r373907 = r373905 + r373906;
double r373908 = r373907 * r373907;
return r373908;
}
double f(double x, double y) {
double r373909 = y;
double r373910 = x;
double r373911 = 2.0;
double r373912 = fma(r373910, r373911, r373909);
double r373913 = r373910 * r373910;
double r373914 = fma(r373909, r373912, r373913);
return r373914;
}




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