x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;a \leq -3.0798685194927104 \cdot 10^{-74} \lor \neg \left(a \leq 2.710508130171763 \cdot 10^{-285}\right):\\
\;\;\;\;x + \frac{y - z}{a - z} \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t + \frac{x \cdot y}{z}\right) - \frac{y \cdot t}{z}\\
\end{array}(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.0798685194927104e-74) (not (<= a 2.710508130171763e-285))) (+ x (* (/ (- y z) (- a z)) (- t x))) (- (+ t (/ (* x y) z)) (/ (* y t) z))))
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 tmp;
if ((a <= -3.0798685194927104e-74) || !(a <= 2.710508130171763e-285)) {
tmp = x + (((y - z) / (a - z)) * (t - x));
} else {
tmp = (t + ((x * y) / z)) - ((y * t) / z);
}
return tmp;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a
Results
if a < -3.0798685194927104e-74 or 2.71050813017176306e-285 < a Initial program 12.4
rmApplied clear-num_binary6412.7
rmApplied associate-/r/_binary6412.5
Applied associate-*r*_binary649.6
Simplified9.5
if -3.0798685194927104e-74 < a < 2.71050813017176306e-285Initial program 23.9
rmApplied add-cube-cbrt_binary6424.6
Applied add-cube-cbrt_binary6424.8
Applied times-frac_binary6424.8
Applied associate-*r*_binary6420.0
Taylor expanded around inf 15.7
Simplified15.7
Final simplification10.7
herbie shell --seed 2020220
(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)))))