\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(y, \mathsf{fma}\left(x, 2, y\right), x \cdot x\right)double f(double x, double y) {
double r368130 = x;
double r368131 = y;
double r368132 = r368130 + r368131;
double r368133 = r368132 * r368132;
return r368133;
}
double f(double x, double y) {
double r368134 = y;
double r368135 = x;
double r368136 = 2.0;
double r368137 = fma(r368135, r368136, r368134);
double r368138 = r368135 * r368135;
double r368139 = fma(r368134, r368137, r368138);
return r368139;
}




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