\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(x, x, \mathsf{fma}\left(2 \cdot x, y, {y}^{2}\right)\right)double f(double x, double y) {
double r680874 = x;
double r680875 = y;
double r680876 = r680874 + r680875;
double r680877 = r680876 * r680876;
return r680877;
}
double f(double x, double y) {
double r680878 = x;
double r680879 = 2.0;
double r680880 = r680879 * r680878;
double r680881 = y;
double r680882 = pow(r680881, r680879);
double r680883 = fma(r680880, r680881, r680882);
double r680884 = fma(r680878, r680878, r680883);
return r680884;
}




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