x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;a \leq -1.218667072671277 \cdot 10^{-160} \lor \neg \left(a \leq 3.2230590842740403 \cdot 10^{-59}\right):\\
\;\;\;\;x + \frac{y - z}{a - z} \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;t + y \cdot \left(\frac{x}{z} - \frac{t}{z}\right)\\
\end{array}double code(double x, double y, double z, double t, double a) {
return ((double) (x + ((double) (((double) (y - z)) * (((double) (t - x)) / ((double) (a - z)))))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if (((a <= -1.218667072671277e-160) || !(a <= 3.2230590842740403e-59))) {
VAR = ((double) (x + ((double) ((((double) (y - z)) / ((double) (a - z))) * ((double) (t - x))))));
} else {
VAR = ((double) (t + ((double) (y * ((double) ((x / z) - (t / 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 a < -1.21866707267128e-160 or 3.2230590842740403e-59 < a Initial program 11.2
rmApplied clear-num11.5
rmApplied associate-/r/11.3
Applied associate-*r*9.1
Simplified9.0
if -1.21866707267128e-160 < a < 3.2230590842740403e-59Initial program 23.7
Taylor expanded around inf 16.3
Simplified13.7
Final simplification10.4
herbie shell --seed 2020199
(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)))))