x + \frac{y \cdot \left(z - t\right)}{a - t}\begin{array}{l}
\mathbf{if}\;y \le -530501686562953.62:\\
\;\;\;\;x + y \cdot \left(\left(z - t\right) \cdot \frac{1}{a - t}\right)\\
\mathbf{elif}\;y \le 4.1892129312362705 \cdot 10^{53}:\\
\;\;\;\;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) (y * ((double) (z - t)))) / ((double) (a - t)))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if ((y <= -530501686562953.6)) {
VAR = ((double) (x + ((double) (y * ((double) (((double) (z - t)) * (1.0 / ((double) (a - t)))))))));
} else {
double VAR_1;
if ((y <= 4.1892129312362705e+53)) {
VAR_1 = ((double) (x + (((double) (y * ((double) (z - t)))) / ((double) (a - t)))));
} else {
VAR_1 = ((double) (x + (y / (((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 | 10.9 |
|---|---|
| Target | 1.4 |
| Herbie | 0.7 |
if y < -530501686562953.62Initial program 24.5
rmApplied *-un-lft-identity24.5
Applied times-frac0.8
Simplified0.8
rmApplied div-inv0.9
if -530501686562953.62 < y < 4.1892129312362705e53Initial program 0.6
if 4.1892129312362705e53 < y Initial program 26.7
rmApplied associate-/l*0.4
Final simplification0.7
herbie shell --seed 2020181
(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))))