\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 r677338 = x;
double r677339 = y;
double r677340 = r677338 + r677339;
double r677341 = r677340 * r677340;
return r677341;
}
double f(double x, double y) {
double r677342 = x;
double r677343 = 2.0;
double r677344 = r677343 * r677342;
double r677345 = y;
double r677346 = pow(r677345, r677343);
double r677347 = fma(r677344, r677345, r677346);
double r677348 = fma(r677342, r677342, r677347);
return r677348;
}




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