x + y \cdot \frac{z - t}{z - a}\begin{array}{l}
\mathbf{if}\;y \le -3.1529935051864828 \cdot 10^{47} \lor \neg \left(y \le 5.72235627477408708 \cdot 10^{-167}\right):\\
\;\;\;\;x + {\left(\frac{y}{\frac{z - a}{z - t}}\right)}^{1}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - t\right)}{z - a}\\
\end{array}double code(double x, double y, double z, double t, double a) {
return ((double) (x + ((double) (y * ((double) (((double) (z - t)) / ((double) (z - a))))))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if (((y <= -3.152993505186483e+47) || !(y <= 5.722356274774087e-167))) {
VAR = ((double) (x + ((double) pow(((double) (y / ((double) (((double) (z - a)) / ((double) (z - t)))))), 1.0))));
} else {
VAR = ((double) (x + ((double) (((double) (y * ((double) (z - t)))) / ((double) (z - a))))));
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 1.2 |
|---|---|
| Target | 1.1 |
| Herbie | 0.7 |
if y < -3.1529935051864828e47 or 5.72235627477408708e-167 < y Initial program 0.7
rmApplied add-cube-cbrt1.4
Applied associate-*l*1.4
rmApplied pow11.4
Applied pow11.4
Applied pow-prod-down1.4
Applied pow11.4
Applied pow11.4
Applied pow-prod-down1.4
Applied pow-prod-down1.4
Simplified0.7
if -3.1529935051864828e47 < y < 5.72235627477408708e-167Initial program 1.8
rmApplied associate-*r/0.6
Final simplification0.7
herbie shell --seed 2020173
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (* y (/ (- z t) (- z a)))))