\frac{x}{y \cdot y}\frac{1}{y} \cdot \frac{x}{y}double f(double x, double y) {
double r12437259 = x;
double r12437260 = y;
double r12437261 = r12437260 * r12437260;
double r12437262 = r12437259 / r12437261;
return r12437262;
}
double f(double x, double y) {
double r12437263 = 1.0;
double r12437264 = y;
double r12437265 = r12437263 / r12437264;
double r12437266 = x;
double r12437267 = r12437266 / r12437264;
double r12437268 = r12437265 * r12437267;
return r12437268;
}




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