x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;z \le -2.28480809319162867 \cdot 10^{173} \lor \neg \left(z \le 1.41772240633504955 \cdot 10^{216}\right):\\
\;\;\;\;\mathsf{fma}\left(y, \frac{x}{z} - \frac{t}{z}, t\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y - z}{a - z}}{\frac{1}{t - x}} + x\\
\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 (((z <= -2.2848080931916287e+173) || !(z <= 1.4177224063350496e+216))) {
VAR = fma(y, ((x / z) - (t / z)), t);
} else {
VAR = ((((y - z) / (a - z)) / (1.0 / (t - x))) + x);
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a
Results
if z < -2.2848080931916287e+173 or 1.4177224063350496e+216 < z Initial program 28.0
Simplified28.0
Taylor expanded around inf 22.8
Simplified12.5
if -2.2848080931916287e+173 < z < 1.4177224063350496e+216Initial program 10.8
Simplified10.8
rmApplied clear-num11.0
rmApplied fma-udef11.0
Simplified10.7
rmApplied div-inv10.7
Applied associate-/r*8.5
Final simplification9.3
herbie shell --seed 2020102 +o rules:numerics
(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)))))