\left(x + y\right) \cdot \left(x + y\right)
x \cdot x + \mathsf{fma}\left(x, 2, y\right) \cdot ydouble f(double x, double y) {
double r629050 = x;
double r629051 = y;
double r629052 = r629050 + r629051;
double r629053 = r629052 * r629052;
return r629053;
}
double f(double x, double y) {
double r629054 = x;
double r629055 = r629054 * r629054;
double r629056 = 2.0;
double r629057 = y;
double r629058 = fma(r629054, r629056, r629057);
double r629059 = r629058 * r629057;
double r629060 = r629055 + r629059;
return r629060;
}




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
rmApplied distribute-lft-in0.0
Applied associate-+l+0.0
Simplified0.0
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020065 +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)))