x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;z \le -2.08074360009009519 \cdot 10^{182}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{x}{z} - \frac{t}{z}, t\right)\\
\mathbf{elif}\;z \le -1.924648186235541 \cdot 10^{118}:\\
\;\;\;\;\frac{t - x}{\frac{a - z}{y - z}} + x\\
\mathbf{elif}\;z \le -1.02171718390721629 \cdot 10^{66}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{x}{z} - \frac{t}{z}, t\right)\\
\mathbf{elif}\;z \le -1.67841403048886114 \cdot 10^{-95}:\\
\;\;\;\;\mathsf{fma}\left(\left(t - x\right) \cdot \frac{1}{\sqrt[3]{a - z} \cdot \sqrt[3]{a - z}}, \frac{y - z}{\sqrt[3]{a - z}}, x\right)\\
\mathbf{elif}\;z \le 2.6384696105968145 \cdot 10^{82}:\\
\;\;\;\;\frac{t - x}{\frac{a - z}{y - z}} + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{x}{z} - \frac{t}{z}, t\right)\\
\end{array}double code(double x, double y, double z, double t, double a) {
return ((double) (x + ((double) (((double) (y - z)) * ((double) (((double) (t - x)) / ((double) (a - z))))))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if ((z <= -2.0807436000900952e+182)) {
VAR = ((double) fma(y, ((double) (((double) (x / z)) - ((double) (t / z)))), t));
} else {
double VAR_1;
if ((z <= -1.924648186235541e+118)) {
VAR_1 = ((double) (((double) (((double) (t - x)) / ((double) (((double) (a - z)) / ((double) (y - z)))))) + x));
} else {
double VAR_2;
if ((z <= -1.0217171839072163e+66)) {
VAR_2 = ((double) fma(y, ((double) (((double) (x / z)) - ((double) (t / z)))), t));
} else {
double VAR_3;
if ((z <= -1.678414030488861e-95)) {
VAR_3 = ((double) fma(((double) (((double) (t - x)) * ((double) (1.0 / ((double) (((double) cbrt(((double) (a - z)))) * ((double) cbrt(((double) (a - z)))))))))), ((double) (((double) (y - z)) / ((double) cbrt(((double) (a - z)))))), x));
} else {
double VAR_4;
if ((z <= 2.6384696105968145e+82)) {
VAR_4 = ((double) (((double) (((double) (t - x)) / ((double) (((double) (a - z)) / ((double) (y - z)))))) + x));
} else {
VAR_4 = ((double) fma(y, ((double) (((double) (x / z)) - ((double) (t / z)))), t));
}
VAR_3 = VAR_4;
}
VAR_2 = VAR_3;
}
VAR_1 = VAR_2;
}
VAR = VAR_1;
}
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.0807436000900952e+182 or -1.924648186235541e+118 < z < -1.0217171839072163e+66 or 2.6384696105968145e+82 < z Initial program 24.8
Simplified24.8
Taylor expanded around inf 26.6
Simplified18.4
if -2.0807436000900952e+182 < z < -1.924648186235541e+118 or -1.678414030488861e-95 < z < 2.6384696105968145e+82Initial program 9.4
Simplified9.4
rmApplied div-inv9.4
rmApplied fma-udef9.4
Simplified9.4
rmApplied div-inv9.4
Applied associate-*l*6.6
Simplified6.5
rmApplied clear-num6.6
Applied un-div-inv6.4
if -1.0217171839072163e+66 < z < -1.678414030488861e-95Initial program 8.8
Simplified8.7
rmApplied div-inv8.8
rmApplied fma-udef8.8
Simplified8.8
rmApplied div-inv8.8
Applied associate-*l*7.5
Simplified7.4
rmApplied add-cube-cbrt8.1
Applied *-un-lft-identity8.1
Applied times-frac8.1
Applied associate-*r*8.7
Applied fma-def8.7
Final simplification11.1
herbie shell --seed 2020113 +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)))))