\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 r376565 = x;
double r376566 = y;
double r376567 = r376565 + r376566;
double r376568 = r376567 * r376567;
return r376568;
}
double f(double x, double y) {
double r376569 = y;
double r376570 = x;
double r376571 = 2.0;
double r376572 = fma(r376570, r376571, r376569);
double r376573 = r376570 * r376570;
double r376574 = fma(r376569, r376572, r376573);
return r376574;
}




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