\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(x, x, y \cdot \mathsf{fma}\left(x, 2, y\right)\right)double f(double x, double y) {
double r410075 = x;
double r410076 = y;
double r410077 = r410075 + r410076;
double r410078 = r410077 * r410077;
return r410078;
}
double f(double x, double y) {
double r410079 = x;
double r410080 = y;
double r410081 = 2.0;
double r410082 = fma(r410079, r410081, r410080);
double r410083 = r410080 * r410082;
double r410084 = fma(r410079, r410079, r410083);
return r410084;
}




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
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019323 +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)))