\frac{x}{y \cdot y}\frac{1}{y} \cdot \frac{x}{y}double f(double x, double y) {
double r15840898 = x;
double r15840899 = y;
double r15840900 = r15840899 * r15840899;
double r15840901 = r15840898 / r15840900;
return r15840901;
}
double f(double x, double y) {
double r15840902 = 1.0;
double r15840903 = y;
double r15840904 = r15840902 / r15840903;
double r15840905 = x;
double r15840906 = r15840905 / r15840903;
double r15840907 = r15840904 * r15840906;
return r15840907;
}




Bits error versus x




Bits error versus y
Results
| Original | 9.8 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 9.8
rmApplied associate-/r*0.2
rmApplied div-inv0.2
Final simplification0.2
herbie shell --seed 2019163 +o rules:numerics
(FPCore (x y)
:name "Physics.ForceLayout:coulombForce from force-layout-0.4.0.2"
:herbie-target
(/ (/ x y) y)
(/ x (* y y)))