\frac{x}{y \cdot y}\frac{\frac{x}{y}}{y}double f(double x, double y) {
double r229136 = x;
double r229137 = y;
double r229138 = r229137 * r229137;
double r229139 = r229136 / r229138;
return r229139;
}
double f(double x, double y) {
double r229140 = x;
double r229141 = y;
double r229142 = r229140 / r229141;
double r229143 = r229142 / r229141;
return r229143;
}




Bits error versus x




Bits error versus y
Results
| Original | 10.2 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 10.2
rmApplied associate-/r*0.2
rmApplied clear-num0.7
rmApplied associate-/r/0.7
Applied add-cube-cbrt0.7
Applied times-frac0.3
Final simplification0.2
herbie shell --seed 2019308
(FPCore (x y)
:name "Physics.ForceLayout:coulombForce from force-layout-0.4.0.2"
:precision binary64
:herbie-target
(/ (/ x y) y)
(/ x (* y y)))