\frac{x}{y \cdot y}
\begin{array}{l}
\mathbf{if}\;x \leq -7.865606214009272 \cdot 10^{+265}:\\
\;\;\;\;x \cdot \sqrt[3]{{\left({y}^{-2}\right)}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y}\\
\end{array}
(FPCore (x y) :precision binary64 (/ x (* y y)))
(FPCore (x y) :precision binary64 (if (<= x -7.865606214009272e+265) (* x (cbrt (pow (pow y -2.0) 3.0))) (/ (/ x y) y)))
double code(double x, double y) {
return x / (y * y);
}
double code(double x, double y) {
double tmp;
if (x <= -7.865606214009272e+265) {
tmp = x * cbrt(pow(pow(y, -2.0), 3.0));
} else {
tmp = (x / y) / y;
}
return tmp;
}




Bits error versus x




Bits error versus y
Results
| Original | 10.1 |
|---|---|
| Target | 0.2 |
| Herbie | 1.3 |
if x < -7.8656062140092724e265Initial program 24.1
Applied egg-rr24.2
Applied egg-rr49.5
if -7.8656062140092724e265 < x Initial program 9.8
Applied egg-rr10.2
Applied egg-rr0.2
Final simplification1.3
herbie shell --seed 2022127
(FPCore (x y)
:name "Physics.ForceLayout:coulombForce from force-layout-0.4.0.2"
:precision binary64
:herbie-target
(/ (/ x y) y)
(/ x (* y y)))