\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 r579415 = x;
double r579416 = y;
double r579417 = r579415 + r579416;
double r579418 = r579417 * r579417;
return r579418;
}
double f(double x, double y) {
double r579419 = x;
double r579420 = 2.0;
double r579421 = r579420 * r579419;
double r579422 = y;
double r579423 = pow(r579422, r579420);
double r579424 = fma(r579421, r579422, r579423);
double r579425 = fma(r579419, r579419, r579424);
return r579425;
}




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