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 r327625 = 2.0;
double r327626 = x;
double r327627 = r327626 * r327626;
double r327628 = y;
double r327629 = r327626 * r327628;
double r327630 = r327627 + r327629;
double r327631 = r327625 * r327630;
return r327631;
}
double f(double x, double y) {
double r327632 = 2.0;
double r327633 = x;
double r327634 = r327632 * r327633;
double r327635 = y;
double r327636 = r327633 + r327635;
double r327637 = r327634 * r327636;
return r327637;
}




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 2019235
(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))))