x + \frac{y \cdot \left(z - t\right)}{z - a}\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z - t\right)}{z - a} \le -2.17530072959983735 \cdot 10^{259} \lor \neg \left(\frac{y \cdot \left(z - t\right)}{z - a} \le 6.29579517510261386 \cdot 10^{279}\right):\\
\;\;\;\;x + y \cdot \left(\frac{z}{z - a} - \frac{t}{z - a}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - t\right)}{z - a}\\
\end{array}double code(double x, double y, double z, double t, double a) {
return ((double) (x + (((double) (y * ((double) (z - t)))) / ((double) (z - a)))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if ((((((double) (y * ((double) (z - t)))) / ((double) (z - a))) <= -2.1753007295998373e+259) || !((((double) (y * ((double) (z - t)))) / ((double) (z - a))) <= 6.295795175102614e+279))) {
VAR = ((double) (x + ((double) (y * ((double) ((z / ((double) (z - a))) - (t / ((double) (z - a)))))))));
} else {
VAR = ((double) (x + (((double) (y * ((double) (z - t)))) / ((double) (z - a)))));
}
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.3 |
| Herbie | 0.4 |
if (/ (* y (- z t)) (- z a)) < -2.17530072959983735e259 or 6.29579517510261386e279 < (/ (* y (- z t)) (- z a)) Initial program 58.5
rmApplied *-un-lft-identity58.5
Applied times-frac1.1
Simplified1.1
rmApplied div-sub1.1
if -2.17530072959983735e259 < (/ (* y (- z t)) (- z a)) < 6.29579517510261386e279Initial program 0.2
Final simplification0.4
herbie shell --seed 2020181
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (/ (* y (- z t)) (- z a))))