\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 r699284 = x;
double r699285 = y;
double r699286 = r699284 + r699285;
double r699287 = r699286 * r699286;
return r699287;
}
double f(double x, double y) {
double r699288 = x;
double r699289 = 2.0;
double r699290 = r699289 * r699288;
double r699291 = y;
double r699292 = pow(r699291, r699289);
double r699293 = fma(r699290, r699291, r699292);
double r699294 = fma(r699288, r699288, r699293);
return r699294;
}




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