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:\\
\;\;\;\;x + y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;\frac{y \cdot \left(z - t\right)}{a - t} \le 3.15913987496220917 \cdot 10^{278}:\\
\;\;\;\;x + \frac{y \cdot \left(z - t\right)}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z - 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)) {
VAR = ((double) (x + ((double) (y * ((double) (((double) (z - t)) / ((double) (a - t))))))));
} else {
double VAR_1;
if ((((double) (((double) (y * ((double) (z - t)))) / ((double) (a - t)))) <= 3.159139874962209e+278)) {
VAR_1 = ((double) (x + ((double) (((double) (y * ((double) (z - t)))) / ((double) (a - t))))));
} else {
VAR_1 = ((double) (x + ((double) (y / ((double) (((double) (a - t)) / ((double) (z - t))))))));
}
VAR = VAR_1;
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 11.0 |
|---|---|
| Target | 1.1 |
| Herbie | 0.2 |
if (/ (* y (- z t)) (- a t)) < -inf.0Initial program 64.0
rmApplied *-un-lft-identity64.0
Applied times-frac0.1
Simplified0.1
if -inf.0 < (/ (* y (- z t)) (- a t)) < 3.159139874962209e+278Initial program 0.2
if 3.159139874962209e+278 < (/ (* y (- z t)) (- a t)) Initial program 60.4
rmApplied associate-/l*0.5
Final simplification0.2
herbie shell --seed 2020126
(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))))