x + \frac{y \cdot \left(z - t\right)}{a - t}\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z - t\right)}{a - t} = -inf.0 \lor \neg \left(\frac{y \cdot \left(z - t\right)}{a - t} \le 3.78380229485721606 \cdot 10^{178}\right):\\
\;\;\;\;x + y \cdot \frac{z - t}{a - 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)))) <= -inf.0) || !(((double) (((double) (y * ((double) (z - t)))) / ((double) (a - t)))) <= 3.783802294857216e+178))) {
VAR = ((double) (x + ((double) (y * ((double) (((double) (z - t)) / ((double) (a - 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.9 |
|---|---|
| Target | 1.4 |
| Herbie | 0.5 |
if (/ (* y (- z t)) (- a t)) < -inf.0 or 3.78380229485721606e178 < (/ (* y (- z t)) (- a t)) Initial program 52.3
rmApplied *-un-lft-identity52.3
Applied times-frac1.7
Simplified1.7
if -inf.0 < (/ (* y (- z t)) (- a t)) < 3.78380229485721606e178Initial program 0.2
Final simplification0.5
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))))