x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;x + \left(y - z\right) \cdot \frac{t - x}{a - z} \le -1.21443315646892374 \cdot 10^{-273} \lor \neg \left(x + \left(y - z\right) \cdot \frac{t - x}{a - z} \le 4.4286800464491446 \cdot 10^{-253}\right):\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{x \cdot y}{z} + t\right) - \frac{t \cdot y}{z}\\
\end{array}double code(double x, double y, double z, double t, double a) {
return (x + ((y - z) * ((t - x) / (a - z))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if ((((x + ((y - z) * ((t - x) / (a - z)))) <= -1.2144331564689237e-273) || !((x + ((y - z) * ((t - x) / (a - z)))) <= 4.4286800464491446e-253))) {
VAR = (x + ((y - z) * ((t - x) / (a - z))));
} else {
VAR = ((((x * y) / z) + t) - ((t * y) / z));
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a
Results
if (+ x (* (- y z) (/ (- t x) (- a z)))) < -1.2144331564689237e-273 or 4.4286800464491446e-253 < (+ x (* (- y z) (/ (- t x) (- a z)))) Initial program 7.2
if -1.2144331564689237e-273 < (+ x (* (- y z) (/ (- t x) (- a z)))) < 4.4286800464491446e-253Initial program 58.5
Taylor expanded around inf 28.5
Final simplification10.6
herbie shell --seed 2020075
(FPCore (x y z t a)
:name "Numeric.Signal:interpolate from hsignal-0.2.7.1"
:precision binary64
(+ x (* (- y z) (/ (- t x) (- a z)))))