x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;a \le -3.4874247514004929 \cdot 10^{-149} \lor \neg \left(a \le 2.66694816957246522 \cdot 10^{-200}\right):\\
\;\;\;\;x + \frac{\frac{y - z}{a - z}}{\frac{1}{t - x}}\\
\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 (((a <= -3.487424751400493e-149) || !(a <= 2.666948169572465e-200))) {
VAR = (x + (((y - z) / (a - z)) / (1.0 / (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 a < -3.487424751400493e-149 or 2.666948169572465e-200 < a Initial program 11.9
rmApplied clear-num12.2
rmApplied div-inv12.2
Applied associate-/r*12.0
Applied associate-*r/9.7
Simplified9.6
if -3.487424751400493e-149 < a < 2.666948169572465e-200Initial program 26.3
Taylor expanded around inf 11.5
Final simplification10.0
herbie shell --seed 2020078
(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)))))