\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 r764988 = x;
double r764989 = y;
double r764990 = r764988 + r764989;
double r764991 = r764990 * r764990;
return r764991;
}
double f(double x, double y) {
double r764992 = x;
double r764993 = 2.0;
double r764994 = r764993 * r764992;
double r764995 = y;
double r764996 = pow(r764995, r764993);
double r764997 = fma(r764994, r764995, r764996);
double r764998 = fma(r764992, r764992, r764997);
return r764998;
}




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