x + \frac{y \cdot \left(z - t\right)}{a - t}\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z - t\right)}{a - t} \le -3.723167081724523 \cdot 10^{297} \lor \neg \left(\frac{y \cdot \left(z - t\right)}{a - t} \le 1.27496098893014399 \cdot 10^{256}\right):\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - t\right)}{a - t}\\
\end{array}double code(double x, double y, double z, double t, double a) {
return ((double) (x + ((double) (((double) (y * ((double) (z - t)))) / ((double) (a - t))))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if (((((double) (((double) (y * ((double) (z - t)))) / ((double) (a - t)))) <= -3.723167081724523e+297) || !(((double) (((double) (y * ((double) (z - t)))) / ((double) (a - t)))) <= 1.274960988930144e+256))) {
VAR = ((double) (x + ((double) (y / ((double) (((double) (a - t)) / ((double) (z - t))))))));
} else {
VAR = ((double) (x + ((double) (((double) (y * ((double) (z - t)))) / ((double) (a - t))))));
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 10.7 |
|---|---|
| Target | 1.1 |
| Herbie | 0.3 |
if (/ (* y (- z t)) (- a t)) < -3.723167081724523e297 or 1.27496098893014399e256 < (/ (* y (- z t)) (- a t)) Initial program 59.5
rmApplied associate-/l*0.8
if -3.723167081724523e297 < (/ (* y (- z t)) (- a t)) < 1.27496098893014399e256Initial program 0.2
Final simplification0.3
herbie shell --seed 2020162
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(+ x (/ y (/ (- a t) (- z t))))
(+ x (/ (* y (- z t)) (- a t))))