x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;a \leq -1.757536018637735 \cdot 10^{-125}:\\
\;\;\;\;x + \frac{y - z}{\sqrt[3]{a - z} \cdot \sqrt[3]{a - z}} \cdot \frac{t - x}{\sqrt[3]{a - z}}\\
\mathbf{elif}\;a \leq 6.11279924812159 \cdot 10^{-186}:\\
\;\;\;\;t + y \cdot \left(\frac{x}{z} - \frac{t}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\
\end{array}(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.757536018637735e-125)
(+
x
(*
(/ (- y z) (* (cbrt (- a z)) (cbrt (- a z))))
(/ (- t x) (cbrt (- a z)))))
(if (<= a 6.11279924812159e-186)
(+ t (* y (- (/ x z) (/ t z))))
(+ x (* (- t x) (/ (- y z) (- a z)))))))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 tmp;
if (a <= -1.757536018637735e-125) {
tmp = x + (((y - z) / (cbrt(a - z) * cbrt(a - z))) * ((t - x) / cbrt(a - z)));
} else if (a <= 6.11279924812159e-186) {
tmp = t + (y * ((x / z) - (t / z)));
} else {
tmp = x + ((t - x) * ((y - z) / (a - z)));
}
return tmp;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a
Results
if a < -1.7575360186377351e-125Initial program 11.4
rmApplied add-cube-cbrt_binary6411.9
Applied *-un-lft-identity_binary6411.9
Applied times-frac_binary6411.9
Applied associate-*r*_binary649.6
Simplified9.6
if -1.7575360186377351e-125 < a < 6.1127992481215899e-186Initial program 26.2
Taylor expanded around inf 13.1
Simplified11.4
if 6.1127992481215899e-186 < a Initial program 12.7
rmApplied clear-num_binary6412.9
rmApplied associate-/r/_binary6412.8
Applied associate-*r*_binary6410.2
Simplified10.1
Final simplification10.2
herbie shell --seed 2020274
(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)))))