\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 r688013 = x;
double r688014 = y;
double r688015 = r688013 + r688014;
double r688016 = r688015 * r688015;
return r688016;
}
double f(double x, double y) {
double r688017 = x;
double r688018 = 2.0;
double r688019 = r688018 * r688017;
double r688020 = y;
double r688021 = pow(r688020, r688018);
double r688022 = fma(r688019, r688020, r688021);
double r688023 = fma(r688017, r688017, r688022);
return r688023;
}




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