x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;z \le -3.2165983826730228 \cdot 10^{246} \lor \neg \left(z \le 9.10019436889470365 \cdot 10^{191}\right):\\
\;\;\;\;\mathsf{fma}\left(y, \frac{x}{z} - \frac{t}{z}, t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\sqrt[3]{x} \cdot \sqrt[3]{x}, \sqrt[3]{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}}\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 (((z <= -3.216598382673023e+246) || !(z <= 9.100194368894704e+191))) {
VAR = fma(y, ((x / z) - (t / z)), t);
} else {
VAR = fma((cbrt(x) * cbrt(x)), cbrt(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 < -3.216598382673023e+246 or 9.100194368894704e+191 < z Initial program 31.4
Simplified31.3
Taylor expanded around inf 23.5
Simplified13.6
if -3.216598382673023e+246 < z < 9.100194368894704e+191Initial program 11.4
rmApplied add-cube-cbrt11.9
Applied add-cube-cbrt12.1
Applied times-frac12.1
Applied associate-*r*9.4
rmApplied add-cube-cbrt9.8
Applied fma-def9.8
Final simplification10.4
herbie shell --seed 2020100 +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)))))