\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 r422768 = x;
double r422769 = y;
double r422770 = r422768 + r422769;
double r422771 = r422770 * r422770;
return r422771;
}
double f(double x, double y) {
double r422772 = x;
double r422773 = y;
double r422774 = 2.0;
double r422775 = fma(r422772, r422774, r422773);
double r422776 = r422773 * r422775;
double r422777 = fma(r422772, r422772, r422776);
return r422777;
}




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