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} \leq -4.935102538180641 \cdot 10^{-290}:\\
\;\;\;\;x + \left(t - x\right) \cdot \left(\left(y - z\right) \cdot \frac{1}{a - z}\right)\\
\mathbf{elif}\;x + \left(y - z\right) \cdot \frac{t - x}{a - z} \leq 6.931940928214464 \cdot 10^{-248}:\\
\;\;\;\;\left(t + \left(\frac{x \cdot y}{z} + \frac{t \cdot a}{z}\right)\right) - \left(\frac{x \cdot a}{z} + \frac{y \cdot t}{z}\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}(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
(FPCore (x y z t a)
:precision binary64
(if (<= (+ x (* (- y z) (/ (- t x) (- a z)))) -4.935102538180641e-290)
(+ x (* (- t x) (* (- y z) (/ 1.0 (- a z)))))
(if (<= (+ x (* (- y z) (/ (- t x) (- a z)))) 6.931940928214464e-248)
(- (+ t (+ (/ (* x y) z) (/ (* t a) z))) (+ (/ (* x a) z) (/ (* y t) z)))
(+
x
(*
(*
(- y z)
(/
(* (cbrt (- t x)) (cbrt (- t x)))
(* (cbrt (- a z)) (cbrt (- a z)))))
(/ (cbrt (- t x)) (cbrt (- 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 ((x + ((y - z) * ((t - x) / (a - z)))) <= -4.935102538180641e-290) {
tmp = x + ((t - x) * ((y - z) * (1.0 / (a - z))));
} else if ((x + ((y - z) * ((t - x) / (a - z)))) <= 6.931940928214464e-248) {
tmp = (t + (((x * y) / z) + ((t * a) / z))) - (((x * a) / z) + ((y * t) / z));
} else {
tmp = x + (((y - z) * ((cbrt(t - x) * cbrt(t - x)) / (cbrt(a - z) * cbrt(a - z)))) * (cbrt(t - x) / cbrt(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 (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.9351025381806408e-290Initial program 7.8
rmApplied div-sub_binary64_28117.8
rmApplied div-inv_binary64_28037.8
Applied div-inv_binary64_28037.8
Applied distribute-rgt-out--_binary64_27607.8
Applied associate-*r*_binary64_27464.4
if -4.9351025381806408e-290 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 6.9319409282144644e-248Initial program 58.7
Taylor expanded around inf 13.6
if 6.9319409282144644e-248 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 6.6
rmApplied add-cube-cbrt_binary64_28417.3
Applied add-cube-cbrt_binary64_28417.4
Applied times-frac_binary64_28127.4
Applied associate-*r*_binary64_27464.3
Final simplification5.7
herbie shell --seed 2021093
(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)))))