\frac{x}{y \cdot y}\frac{\frac{x}{y}}{y}double f(double x, double y) {
double r330827 = x;
double r330828 = y;
double r330829 = r330828 * r330828;
double r330830 = r330827 / r330829;
return r330830;
}
double f(double x, double y) {
double r330831 = x;
double r330832 = y;
double r330833 = r330831 / r330832;
double r330834 = r330833 / r330832;
return r330834;
}




Bits error versus x




Bits error versus y
Results
| Original | 10.8 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 10.8
rmApplied associate-/r*0.2
rmApplied *-un-lft-identity0.2
Applied *-un-lft-identity0.2
Applied times-frac0.2
Applied associate-/l*0.6
rmApplied div-inv0.7
Applied add-sqr-sqrt0.7
Applied times-frac0.3
Simplified0.3
Simplified0.2
rmApplied associate-*r/0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019354 +o rules:numerics
(FPCore (x y)
:name "Physics.ForceLayout:coulombForce from force-layout-0.4.0.2"
:precision binary64
:herbie-target
(/ (/ x y) y)
(/ x (* y y)))