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 r466858 = 2.0;
double r466859 = x;
double r466860 = r466859 * r466859;
double r466861 = y;
double r466862 = r466859 * r466861;
double r466863 = r466860 + r466862;
double r466864 = r466858 * r466863;
return r466864;
}
double f(double x, double y) {
double r466865 = 2.0;
double r466866 = x;
double r466867 = r466865 * r466866;
double r466868 = y;
double r466869 = r466866 + r466868;
double r466870 = r466867 * r466869;
return r466870;
}




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