2 \cdot \left(x \cdot x + x \cdot y\right)
\left(2 \cdot x\right) \cdot \left(x + y\right)
double f(double x, double y) {
double r561804 = 2.0;
double r561805 = x;
double r561806 = r561805 * r561805;
double r561807 = y;
double r561808 = r561805 * r561807;
double r561809 = r561806 + r561808;
double r561810 = r561804 * r561809;
return r561810;
}
double f(double x, double y) {
double r561811 = 2.0;
double r561812 = x;
double r561813 = r561811 * r561812;
double r561814 = y;
double r561815 = r561812 + r561814;
double r561816 = r561813 * r561815;
return r561816;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied distribute-lft-out0.0
Applied associate-*r*0.0
Final simplification0.0
herbie shell --seed 2020025
(FPCore (x y)
:name "Linear.Matrix:fromQuaternion from linear-1.19.1.3, B"
:precision binary64
:herbie-target
(* (* x 2) (+ x y))
(* 2 (+ (* x x) (* x y))))