x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;z \le -5.2475651165603348 \cdot 10^{147} \lor \neg \left(z \le 3.0255949176829831 \cdot 10^{152}\right):\\
\;\;\;\;\mathsf{fma}\left(y, \frac{x}{z} - \frac{t}{z}, t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(\left(y - z\right) \cdot \frac{\sqrt[3]{t - x} \cdot \sqrt[3]{t - x}}{\sqrt[3]{a - z} \cdot \sqrt[3]{a - z}}\right) \cdot \frac{\sqrt[3]{t - x}}{\sqrt[3]{a - z}}\\
\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 (((z <= -5.247565116560335e+147) || !(z <= 3.025594917682983e+152))) {
VAR = fma(y, ((x / z) - (t / z)), t);
} else {
VAR = (x + (((y - z) * ((cbrt((t - x)) * cbrt((t - x))) / (cbrt((a - z)) * cbrt((a - z))))) * (cbrt((t - x)) / cbrt((a - z)))));
}
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 < -5.247565116560335e+147 or 3.025594917682983e+152 < z Initial program 28.5
Simplified28.4
Taylor expanded around inf 24.6
Simplified15.8
if -5.247565116560335e+147 < z < 3.025594917682983e+152Initial program 9.2
rmApplied add-cube-cbrt9.7
Applied add-cube-cbrt9.9
Applied times-frac9.9
Applied associate-*r*7.2
Final simplification9.7
herbie shell --seed 2020092 +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)))))