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} \le -2.14280795298643451 \cdot 10^{-276}:\\
\;\;\;\;x + \frac{1}{\sqrt[3]{\sqrt[3]{a - z}}} \cdot \left(\frac{\frac{y - z}{\sqrt[3]{a - z} \cdot \sqrt[3]{a - z}}}{\sqrt[3]{\sqrt[3]{a - z}}} \cdot \frac{t - x}{\sqrt[3]{\sqrt[3]{a - z}}}\right)\\
\mathbf{elif}\;x + \left(y - z\right) \cdot \frac{t - x}{a - z} \le 0.0:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{x}{z} - \frac{t}{z}, t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\sqrt[3]{y - z} \cdot \sqrt[3]{y - z}}{\sqrt[3]{a - z}} \cdot \left(\frac{\sqrt[3]{y - z}}{\sqrt[3]{a - z}} \cdot \frac{t - x}{\sqrt[3]{a - z}}\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 (((x + ((y - z) * ((t - x) / (a - z)))) <= -2.1428079529864345e-276)) {
temp = (x + ((1.0 / cbrt(cbrt((a - z)))) * ((((y - z) / (cbrt((a - z)) * cbrt((a - z)))) / cbrt(cbrt((a - z)))) * ((t - x) / cbrt(cbrt((a - z)))))));
} else {
double temp_1;
if (((x + ((y - z) * ((t - x) / (a - z)))) <= 0.0)) {
temp_1 = fma(y, ((x / z) - (t / z)), t);
} else {
temp_1 = (x + (((cbrt((y - z)) * cbrt((y - z))) / cbrt((a - z))) * ((cbrt((y - z)) / cbrt((a - z))) * ((t - x) / cbrt((a - z))))));
}
temp = temp_1;
}
return temp;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a
Results
if (+ x (* (- y z) (/ (- t x) (- a z)))) < -2.1428079529864345e-276Initial program 6.6
rmApplied add-cube-cbrt7.3
Applied *-un-lft-identity7.3
Applied times-frac7.3
Applied associate-*r*4.6
Simplified4.6
rmApplied add-cube-cbrt4.6
Applied cbrt-prod4.7
Applied *-un-lft-identity4.7
Applied times-frac4.7
Applied associate-*r*4.6
Simplified4.6
rmApplied cbrt-prod4.8
Applied *-un-lft-identity4.8
Applied times-frac4.8
Applied associate-*l*6.2
if -2.1428079529864345e-276 < (+ x (* (- y z) (/ (- t x) (- a z)))) < 0.0Initial program 60.3
Simplified60.0
Taylor expanded around inf 25.5
Simplified20.1
if 0.0 < (+ x (* (- y z) (/ (- t x) (- a z)))) Initial program 8.5
rmApplied add-cube-cbrt9.2
Applied *-un-lft-identity9.2
Applied times-frac9.2
Applied associate-*r*5.5
Simplified5.5
rmApplied add-cube-cbrt5.3
Applied times-frac5.3
Applied associate-*l*4.9
Final simplification7.5
herbie shell --seed 2020057 +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)))))