\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(x, x, \mathsf{fma}\left(2 \cdot x, y, {y}^{2}\right)\right)double f(double x, double y) {
double r604281 = x;
double r604282 = y;
double r604283 = r604281 + r604282;
double r604284 = r604283 * r604283;
return r604284;
}
double f(double x, double y) {
double r604285 = x;
double r604286 = 2.0;
double r604287 = r604286 * r604285;
double r604288 = y;
double r604289 = pow(r604288, r604286);
double r604290 = fma(r604287, r604288, r604289);
double r604291 = fma(r604285, r604285, r604290);
return r604291;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Simplified0.0
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019354 +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)))