\frac{x}{y \cdot y}\frac{\frac{1}{\frac{y}{x}}}{y}double f(double x, double y) {
double r13623427 = x;
double r13623428 = y;
double r13623429 = r13623428 * r13623428;
double r13623430 = r13623427 / r13623429;
return r13623430;
}
double f(double x, double y) {
double r13623431 = 1.0;
double r13623432 = y;
double r13623433 = x;
double r13623434 = r13623432 / r13623433;
double r13623435 = r13623431 / r13623434;
double r13623436 = r13623435 / r13623432;
return r13623436;
}




Bits error versus x




Bits error versus y
Results
| Original | 10.6 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 10.6
rmApplied associate-/r*0.2
rmApplied clear-num0.6
rmApplied associate-/r/0.6
Applied associate-/r*0.2
Final simplification0.2
herbie shell --seed 2019192 +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)))