x + \frac{y \cdot \left(z - t\right)}{z - a}\begin{array}{l}
\mathbf{if}\;y \le -2.67021214527556027 \cdot 10^{43}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z - a}\\
\mathbf{elif}\;y \le 1.20618880313943598 \cdot 10^{-53}:\\
\;\;\;\;x + \frac{1}{\frac{z - a}{y \cdot \left(z - t\right)}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{z}{z - t} - \frac{a}{z - t}}\\
\end{array}double code(double x, double y, double z, double t, double a) {
return (x + ((y * (z - t)) / (z - a)));
}
double code(double x, double y, double z, double t, double a) {
double temp;
if ((y <= -2.6702121452755603e+43)) {
temp = (x + (y * ((z - t) / (z - a))));
} else {
double temp_1;
if ((y <= 1.206188803139436e-53)) {
temp_1 = (x + (1.0 / ((z - a) / (y * (z - t)))));
} else {
temp_1 = (x + (y / ((z / (z - t)) - (a / (z - t)))));
}
temp = temp_1;
}
return temp;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 10.6 |
|---|---|
| Target | 1.3 |
| Herbie | 0.5 |
if y < -2.6702121452755603e+43Initial program 27.2
rmApplied *-un-lft-identity27.2
Applied times-frac0.5
Simplified0.5
if -2.6702121452755603e+43 < y < 1.206188803139436e-53Initial program 0.5
rmApplied clear-num0.5
if 1.206188803139436e-53 < y Initial program 19.0
rmApplied associate-/l*0.6
rmApplied div-sub0.6
Final simplification0.5
herbie shell --seed 2020053
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (/ (* y (- z t)) (- z a))))