\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 r654127 = x;
double r654128 = y;
double r654129 = r654127 + r654128;
double r654130 = r654129 * r654129;
return r654130;
}
double f(double x, double y) {
double r654131 = x;
double r654132 = 2.0;
double r654133 = r654132 * r654131;
double r654134 = y;
double r654135 = pow(r654134, r654132);
double r654136 = fma(r654133, r654134, r654135);
double r654137 = fma(r654131, r654131, r654136);
return r654137;
}




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