\frac{x}{y \cdot y}\frac{\frac{\sqrt[3]{1} \cdot x}{y}}{y}(FPCore (x y) :precision binary64 (/ x (* y y)))
(FPCore (x y) :precision binary64 (/ (/ (* (cbrt 1.0) x) y) y))
double code(double x, double y) {
return x / (y * y);
}
double code(double x, double y) {
return ((cbrt(1.0) * x) / y) / y;
}




Bits error versus x




Bits error versus y
Results
| Original | 10.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 10.4
rmApplied clear-num_binary64_1269410.6
Simplified0.6
rmApplied associate-/r/_binary64_126410.6
Applied associate-/r*_binary64_126390.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2021176
(FPCore (x y)
:name "Physics.ForceLayout:coulombForce from force-layout-0.4.0.2"
:precision binary64
:herbie-target
(/ (/ x y) y)
(/ x (* y y)))