x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;a \le -1.13367789971176297 \cdot 10^{-127} \lor \neg \left(a \le 4.19833621218422872 \cdot 10^{-156}\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) (((double) (t - x)) / ((double) (a - z))))))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if (((a <= -1.133677899711763e-127) || !(a <= 4.1983362121842287e-156))) {
VAR = ((double) (x + ((double) (((double) (((double) (y - z)) / ((double) (a - z)))) * ((double) (t - x))))));
} else {
VAR = ((double) (t + ((double) (y * ((double) (((double) (x / z)) - ((double) (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.133677899711763e-127 or 4.1983362121842287e-156 < a Initial program 11.4
rmApplied clear-num11.7
rmApplied associate-/r/11.4
Applied associate-*r*9.2
Simplified9.1
if -1.133677899711763e-127 < a < 4.1983362121842287e-156Initial program 25.7
rmApplied add-cube-cbrt26.4
Applied add-cube-cbrt26.6
Applied times-frac26.6
Applied associate-*r*20.7
rmApplied add-cube-cbrt20.8
Applied associate-*r*20.8
Taylor expanded around inf 14.3
Simplified12.8
Final simplification10.0
herbie shell --seed 2020123
(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)))))