\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 r355167 = x;
double r355168 = y;
double r355169 = r355167 + r355168;
double r355170 = r355169 * r355169;
return r355170;
}
double f(double x, double y) {
double r355171 = y;
double r355172 = x;
double r355173 = 2.0;
double r355174 = fma(r355172, r355173, r355171);
double r355175 = r355172 * r355172;
double r355176 = fma(r355171, r355174, r355175);
return r355176;
}




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