\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(y, y, \mathsf{fma}\left(x, x, x \cdot y + x \cdot y\right)\right)double f(double x, double y) {
double r166269447 = x;
double r166269448 = y;
double r166269449 = r166269447 + r166269448;
double r166269450 = r166269449 * r166269449;
return r166269450;
}
double f(double x, double y) {
double r166269451 = y;
double r166269452 = x;
double r166269453 = r166269452 * r166269451;
double r166269454 = r166269453 + r166269453;
double r166269455 = fma(r166269452, r166269452, r166269454);
double r166269456 = fma(r166269451, r166269451, r166269455);
return r166269456;
}




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
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019173 +o rules:numerics
(FPCore (x y)
:name "Examples.Basics.BasicTests:f3 from sbv-4.4"
:herbie-target
(+ (* x x) (+ (* y y) (* 2.0 (* y x))))
(* (+ x y) (+ x y)))