\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(x, x, y \cdot y + 2 \cdot \left(x \cdot y\right)\right)double f(double x, double y) {
double r725102 = x;
double r725103 = y;
double r725104 = r725102 + r725103;
double r725105 = r725104 * r725104;
return r725105;
}
double f(double x, double y) {
double r725106 = x;
double r725107 = y;
double r725108 = r725107 * r725107;
double r725109 = 2.0;
double r725110 = r725106 * r725107;
double r725111 = r725109 * r725110;
double r725112 = r725108 + r725111;
double r725113 = fma(r725106, r725106, r725112);
return r725113;
}




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
Taylor expanded around 0 0.0
Simplified0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020047 +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)))