x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;z \le -2.6105916431147138 \cdot 10^{171}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x}{z}, y, t - \frac{t \cdot y}{z}\right)\\
\mathbf{elif}\;z \le -1.061022533733094 \cdot 10^{-165}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{elif}\;z \le 9.7047982793877566 \cdot 10^{127}:\\
\;\;\;\;\mathsf{fma}\left(\sqrt[3]{x} \cdot \sqrt[3]{x}, \sqrt[3]{x}, \left(\left(\left(y - z\right) \cdot \frac{\sqrt[3]{t - x} \cdot \left(\sqrt[3]{\sqrt[3]{t - x}} \cdot \sqrt[3]{\sqrt[3]{t - x}}\right)}{\sqrt[3]{a - z} \cdot \sqrt[3]{1}}\right) \cdot \frac{\sqrt[3]{\sqrt[3]{t - x}}}{\sqrt[3]{a - z}}\right) \cdot \frac{\sqrt[3]{t - x}}{\sqrt[3]{a - z}}\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x}{z}, y, t - \frac{t \cdot y}{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 ((z <= -2.610591643114714e+171)) {
temp = fma((x / z), y, (t - ((t * y) / z)));
} else {
double temp_1;
if ((z <= -1.061022533733094e-165)) {
temp_1 = (x + ((y - z) / ((a - z) / (t - x))));
} else {
double temp_2;
if ((z <= 9.704798279387757e+127)) {
temp_2 = fma((cbrt(x) * cbrt(x)), cbrt(x), ((((y - z) * ((cbrt((t - x)) * (cbrt(cbrt((t - x))) * cbrt(cbrt((t - x))))) / (cbrt((a - z)) * cbrt(1.0)))) * (cbrt(cbrt((t - x))) / cbrt((a - z)))) * (cbrt((t - x)) / cbrt((a - z)))));
} else {
temp_2 = fma((x / z), y, (t - ((t * y) / z)));
}
temp_1 = temp_2;
}
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 z < -2.610591643114714e+171 or 9.704798279387757e+127 < z Initial program 27.8
Taylor expanded around inf 25.3
Simplified22.2
if -2.610591643114714e+171 < z < -1.061022533733094e-165Initial program 11.0
rmApplied clear-num11.2
Applied un-div-inv11.0
if -1.061022533733094e-165 < z < 9.704798279387757e+127Initial program 8.9
rmApplied add-cube-cbrt9.4
Applied add-cube-cbrt9.5
Applied times-frac9.5
Applied associate-*r*5.7
rmApplied *-un-lft-identity5.7
Applied cbrt-prod5.7
Applied associate-*r*5.7
Applied add-cube-cbrt5.8
Applied associate-*r*5.8
Applied times-frac5.8
Applied associate-*r*6.0
rmApplied add-cube-cbrt6.6
Applied fma-def6.5
Final simplification12.3
herbie shell --seed 2020066 +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)))))