x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;z \le -1.95333646582006522 \cdot 10^{197} \lor \neg \left(z \le 2.80403393809698577 \cdot 10^{31}\right):\\
\;\;\;\;\mathsf{fma}\left(y, \frac{x}{z} - \frac{t}{z}, t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - z, \frac{\frac{1}{a - z}}{\frac{1}{t - x}}, x\right)\\
\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 temp;
if (((z <= -1.9533364658200652e+197) || !(z <= 2.8040339380969858e+31))) {
temp = fma(y, ((x / z) - (t / z)), t);
} else {
temp = fma((y - z), ((1.0 / (a - z)) / (1.0 / (t - x))), x);
}
return temp;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a
Results
if z < -1.9533364658200652e+197 or 2.8040339380969858e+31 < z Initial program 25.4
Simplified25.3
Taylor expanded around inf 27.3
Simplified19.4
if -1.9533364658200652e+197 < z < 2.8040339380969858e+31Initial program 9.4
Simplified9.3
rmApplied clear-num9.5
rmApplied div-inv9.6
Applied associate-/r*9.4
Final simplification12.9
herbie shell --seed 2020056 +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)))))