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 -3.0937449944064416 \cdot 10^{-295} \lor \neg \left(x + \left(y - z\right) \cdot \frac{t - x}{a - z} \le 3.7357647875255324 \cdot 10^{-237}\right):\\
\;\;\;\;x + \frac{y - z}{\sqrt[3]{a - z} \cdot \sqrt[3]{a - z}} \cdot \frac{t - x}{\sqrt[3]{a - z}}\\
\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 (x + ((y - z) * ((t - x) / (a - z))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if ((((x + ((y - z) * ((t - x) / (a - z)))) <= -3.0937449944064416e-295) || !((x + ((y - z) * ((t - x) / (a - z)))) <= 3.7357647875255324e-237))) {
VAR = (x + (((y - z) / (cbrt((a - z)) * cbrt((a - z)))) * ((t - x) / cbrt((a - z)))));
} else {
VAR = fma(y, ((x / z) - (t / z)), t);
}
return VAR;
}



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)))) < -3.0937449944064416e-295 or 3.7357647875255324e-237 < (+ x (* (- y z) (/ (- t x) (- a z)))) Initial program 7.1
rmApplied add-cube-cbrt7.8
Applied *-un-lft-identity7.8
Applied times-frac7.8
Applied associate-*r*5.2
Simplified5.2
if -3.0937449944064416e-295 < (+ x (* (- y z) (/ (- t x) (- a z)))) < 3.7357647875255324e-237Initial program 57.3
Simplified56.9
Taylor expanded around inf 27.2
Simplified23.2
Final simplification7.9
herbie shell --seed 2020103 +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)))))