x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\begin{array}{l}
t_1 := \frac{t - x}{a - z}\\
t_2 := x + \left(y - z\right) \cdot t_1\\
\mathbf{if}\;t_2 \leq -3.035420144102702 \cdot 10^{+82}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;\begin{array}{l}
t_3 := \left(\frac{x \cdot z}{a - z} + \left(x + \frac{y \cdot t}{a - z}\right)\right) - \left(\frac{x \cdot y}{a - z} + \frac{z \cdot t}{a - z}\right)\\
\mathbf{if}\;t_2 \leq -2.110158889505625 \cdot 10^{-259}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t_2 \leq -3.3183451206916025 \cdot 10^{-284}:\\
\;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a - z} - \frac{x}{a - z}, x\right)\\
\mathbf{elif}\;t_2 \leq 3.62678216224685 \cdot 10^{-275}:\\
\;\;\;\;\left(\frac{x \cdot y}{z} + \left(t + \frac{t \cdot a}{z}\right)\right) - \left(\frac{y \cdot t}{z} + \frac{x \cdot a}{z}\right)\\
\mathbf{elif}\;t_2 \leq 5.485606716490861 \cdot 10^{+304}:\\
\;\;\;\;\mathsf{fma}\left(y - z, t_1, x\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}\\
\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
(let* ((t_1 (/ (- t x) (- a z))) (t_2 (+ x (* (- y z) t_1))))
(if (<= t_2 -3.035420144102702e+82)
(+ x (/ (- y z) (/ (- a z) (- t x))))
(let* ((t_3
(-
(+ (/ (* x z) (- a z)) (+ x (/ (* y t) (- a z))))
(+ (/ (* x y) (- a z)) (/ (* z t) (- a z))))))
(if (<= t_2 -2.110158889505625e-259)
t_3
(if (<= t_2 -3.3183451206916025e-284)
(fma (- y z) (- (/ t (- a z)) (/ x (- a z))) x)
(if (<= t_2 3.62678216224685e-275)
(-
(+ (/ (* x y) z) (+ t (/ (* t a) z)))
(+ (/ (* y t) z) (/ (* x a) z)))
(if (<= t_2 5.485606716490861e+304)
(fma (- y z) t_1 x)
t_3))))))))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 t_1 = (t - x) / (a - z);
double t_2 = x + ((y - z) * t_1);
double tmp;
if (t_2 <= -3.035420144102702e+82) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
double t_3 = (((x * z) / (a - z)) + (x + ((y * t) / (a - z)))) - (((x * y) / (a - z)) + ((z * t) / (a - z)));
double tmp_1;
if (t_2 <= -2.110158889505625e-259) {
tmp_1 = t_3;
} else if (t_2 <= -3.3183451206916025e-284) {
tmp_1 = fma((y - z), ((t / (a - z)) - (x / (a - z))), x);
} else if (t_2 <= 3.62678216224685e-275) {
tmp_1 = (((x * y) / z) + (t + ((t * a) / z))) - (((y * t) / z) + ((x * a) / z));
} else if (t_2 <= 5.485606716490861e+304) {
tmp_1 = fma((y - z), t_1, x);
} else {
tmp_1 = t_3;
}
tmp = tmp_1;
}
return tmp;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -3.03542e82Initial program 6.2
Simplified6.2
Applied clear-num_binary646.3
Applied fma-udef_binary646.3
Simplified5.8
if -3.03542e82 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.110158889505625e-259 or 5.4856067164908612e304 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 11.4
Simplified11.4
Taylor expanded in y around 0 5.0
if -2.110158889505625e-259 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -3.31834512069160249e-284Initial program 27.6
Simplified27.6
Applied add-cube-cbrt_binary6427.7
Applied *-un-lft-identity_binary6427.7
Applied times-frac_binary6427.7
Taylor expanded in t around 0 27.6
if -3.31834512069160249e-284 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 3.62678216224685e-275Initial program 60.2
Simplified59.9
Taylor expanded in z around inf 14.1
if 3.62678216224685e-275 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5.4856067164908612e304Initial program 5.4
Simplified5.4
Applied add-cube-cbrt_binary646.1
Applied *-un-lft-identity_binary646.1
Applied times-frac_binary646.1
Applied pow1_binary646.1
Applied pow1_binary646.1
Applied pow-prod-down_binary646.1
Simplified5.4
Final simplification6.8
herbie shell --seed 2021313
(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)))))