x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;x + \left(y - z\right) \cdot \frac{t - x}{a - z} \leq -\infty:\\
\;\;\;\;x + \left(\left(y - z\right) \cdot \left(t - x\right)\right) \cdot \frac{1}{a - z}\\
\mathbf{elif}\;x + \left(y - z\right) \cdot \frac{t - x}{a - z} \leq -1.2294834615061815 \cdot 10^{+27}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;x + \left(y - z\right) \cdot \frac{t - x}{a - z} \leq -5.909126276611296 \cdot 10^{-268}:\\
\;\;\;\;x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{elif}\;x + \left(y - z\right) \cdot \frac{t - x}{a - z} \leq 0:\\
\;\;\;\;t + y \cdot \left(\frac{x}{z} - \frac{t}{z}\right)\\
\mathbf{elif}\;x + \left(y - z\right) \cdot \frac{t - x}{a - z} \leq 5.28291267339335 \cdot 10^{+307}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - 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 (<= (+ x (* (- y z) (/ (- t x) (- a z)))) (- INFINITY))
(+ x (* (* (- y z) (- t x)) (/ 1.0 (- a z))))
(if (<= (+ x (* (- y z) (/ (- t x) (- a z)))) -1.2294834615061815e+27)
(+ x (* (- y z) (/ (- t x) (- a z))))
(if (<= (+ x (* (- y z) (/ (- t x) (- a z)))) -5.909126276611296e-268)
(+ x (/ (* (- y z) (- t x)) (- a z)))
(if (<= (+ x (* (- y z) (/ (- t x) (- a z)))) 0.0)
(+ t (* y (- (/ x z) (/ t z))))
(if (<= (+ x (* (- y z) (/ (- t x) (- a z)))) 5.28291267339335e+307)
(+ x (* (- y z) (/ (- t x) (- a z))))
(+ x (/ (* (- y z) (- t x)) (- a 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 ((x + ((y - z) * ((t - x) / (a - z)))) <= -((double) INFINITY)) {
tmp = x + (((y - z) * (t - x)) * (1.0 / (a - z)));
} else if ((x + ((y - z) * ((t - x) / (a - z)))) <= -1.2294834615061815e+27) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else if ((x + ((y - z) * ((t - x) / (a - z)))) <= -5.909126276611296e-268) {
tmp = x + (((y - z) * (t - x)) / (a - z));
} else if ((x + ((y - z) * ((t - x) / (a - z)))) <= 0.0) {
tmp = t + (y * ((x / z) - (t / z)));
} else if ((x + ((y - z) * ((t - x) / (a - z)))) <= 5.28291267339335e+307) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else {
tmp = x + (((y - z) * (t - x)) / (a - 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 (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -inf.0Initial program 64.0
rmApplied div-inv_binary64_314364.0
Applied associate-*r*_binary64_320111.9
Simplified11.9
if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.22948e27 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5.28286e307Initial program 4.5
if -1.22948e27 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.9092e-268 or 5.28286e307 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 16.0
rmApplied associate-*r/_binary64_32036.1
Simplified6.1
if -5.9092e-268 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 60.4
Taylor expanded around inf 25.0
Simplified20.9
Final simplification7.1
herbie shell --seed 2020231
(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)))))