\frac{x}{y \cdot y}\frac{1}{y} \cdot \frac{x}{y}double f(double x, double y) {
double r280937 = x;
double r280938 = y;
double r280939 = r280938 * r280938;
double r280940 = r280937 / r280939;
return r280940;
}
double f(double x, double y) {
double r280941 = 1.0;
double r280942 = y;
double r280943 = r280941 / r280942;
double r280944 = x;
double r280945 = r280944 / r280942;
double r280946 = r280943 * r280945;
return r280946;
}




Bits error versus x




Bits error versus y
Results
| Original | 10.1 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 10.1
rmApplied associate-/r*0.2
rmApplied add-sqr-sqrt32.8
Applied add-sqr-sqrt32.9
Applied *-un-lft-identity32.9
Applied times-frac32.9
Applied times-frac32.9
Simplified32.8
Simplified0.2
Final simplification0.2
herbie shell --seed 2019356 +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)))