\frac{x}{y \cdot y}\frac{x}{y} \cdot \frac{1}{y}double f(double x, double y) {
double r316638 = x;
double r316639 = y;
double r316640 = r316639 * r316639;
double r316641 = r316638 / r316640;
return r316641;
}
double f(double x, double y) {
double r316642 = x;
double r316643 = y;
double r316644 = r316642 / r316643;
double r316645 = 1.0;
double r316646 = r316645 / r316643;
double r316647 = r316644 * r316646;
return r316647;
}




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 div-inv0.2
Final simplification0.2
herbie shell --seed 2020024 +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)))