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 2.9232240833309467 \cdot 10^{280}\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)))) <= 2.9232240833309467e+280))) {
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.8 |
|---|---|
| Target | 1.2 |
| Herbie | 0.3 |
if (/ (* y (- z t)) (- a t)) < -inf.0 or 2.9232240833309467e280 < (/ (* y (- z t)) (- a t)) Initial program 61.6
rmApplied *-un-lft-identity61.6
Applied times-frac0.5
Simplified0.5
if -inf.0 < (/ (* y (- z t)) (- a t)) < 2.9232240833309467e280Initial program 0.2
Final simplification0.3
herbie shell --seed 2020163
(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))))