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 -3.0937449944064416 \cdot 10^{-295} \lor \neg \left(x + \left(y - z\right) \cdot \frac{t - x}{a - z} \le 0.0\right):\\
\;\;\;\;x + \frac{1}{\frac{a - z}{y - z}} \cdot \left(t - x\right)\\
\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)))) <= -3.0937449944064416e-295) || !((x + ((y - z) * ((t - x) / (a - z)))) <= 0.0))) {
VAR = (x + ((1.0 / ((a - z) / (y - z))) * (t - x)));
} 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)))) < -3.0937449944064416e-295 or 0.0 < (+ x (* (- y z) (/ (- t x) (- a z)))) Initial program 7.6
rmApplied clear-num7.8
rmApplied associate-/r/7.6
Applied associate-*r*4.3
Simplified4.2
rmApplied clear-num4.2
if -3.0937449944064416e-295 < (+ x (* (- y z) (/ (- t x) (- a z)))) < 0.0Initial program 61.4
Taylor expanded around inf 25.5
Final simplification7.0
herbie shell --seed 2020103
(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)))))