\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(x, x, y \cdot \mathsf{fma}\left(x, 2, y\right)\right)double f(double x, double y) {
double r489289 = x;
double r489290 = y;
double r489291 = r489289 + r489290;
double r489292 = r489291 * r489291;
return r489292;
}
double f(double x, double y) {
double r489293 = x;
double r489294 = y;
double r489295 = 2.0;
double r489296 = fma(r489293, r489295, r489294);
double r489297 = r489294 * r489296;
double r489298 = fma(r489293, r489293, r489297);
return r489298;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019199 +o rules:numerics
(FPCore (x y)
:name "Examples.Basics.BasicTests:f3 from sbv-4.4"
:herbie-target
(+ (* x x) (+ (* y y) (* 2.0 (* y x))))
(* (+ x y) (+ x y)))