\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 r667044 = x;
double r667045 = y;
double r667046 = r667044 + r667045;
double r667047 = r667046 * r667046;
return r667047;
}
double f(double x, double y) {
double r667048 = x;
double r667049 = 2.0;
double r667050 = r667049 * r667048;
double r667051 = y;
double r667052 = pow(r667051, r667049);
double r667053 = fma(r667050, r667051, r667052);
double r667054 = fma(r667048, r667048, r667053);
return r667054;
}




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