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 -6.2072012017607876 \cdot 10^{-257}:\\
\;\;\;\;x + \frac{y - z}{\sqrt[3]{a - z} \cdot \sqrt[3]{a - z}} \cdot \frac{t - x}{\sqrt[3]{a - z}}\\
\mathbf{elif}\;x + \left(y - z\right) \cdot \frac{t - x}{a - z} \leq 0:\\
\;\;\;\;\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{elif}\;x + \left(y - z\right) \cdot \frac{t - x}{a - z} \leq 6.687560582615123 \cdot 10^{+101}:\\
\;\;\;\;\left(x + \frac{x \cdot z}{a - z}\right) + \left(\frac{y \cdot \left(t - x\right)}{a - z} - \frac{z \cdot t}{a - 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)))) -6.2072012017607876e-257)
(+
x
(*
(/ (- y z) (* (cbrt (- a z)) (cbrt (- a z))))
(/ (- t x) (cbrt (- a z)))))
(if (<= (+ x (* (- y z) (/ (- t x) (- a z)))) 0.0)
(- (+ t (+ (/ (* x y) z) (/ (* t a) z))) (+ (/ (* x a) z) (/ (* y t) z)))
(if (<= (+ x (* (- y z) (/ (- t x) (- a z)))) 6.687560582615123e+101)
(+
(+ x (/ (* x z) (- a z)))
(- (/ (* y (- t x)) (- a z)) (/ (* z t) (- a 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)))) <= -6.2072012017607876e-257) {
tmp = x + (((y - z) / (cbrt(a - z) * cbrt(a - z))) * ((t - x) / cbrt(a - z)));
} else if ((x + ((y - z) * ((t - x) / (a - z)))) <= 0.0) {
tmp = (t + (((x * y) / z) + ((t * a) / z))) - (((x * a) / z) + ((y * t) / z));
} else if ((x + ((y - z) * ((t - x) / (a - z)))) <= 6.687560582615123e+101) {
tmp = (x + ((x * z) / (a - z))) + (((y * (t - x)) / (a - z)) - ((z * t) / (a - 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)))) < -6.2072012017607876e-257Initial program 6.5
rmApplied add-cube-cbrt_binary647.2
Applied *-un-lft-identity_binary647.2
Applied times-frac_binary647.2
Applied associate-*r*_binary644.9
Simplified4.9
if -6.2072012017607876e-257 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 59.4
Taylor expanded around inf 13.7
if 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 6.6875605826151235e101Initial program 8.4
Taylor expanded around 0 7.1
Simplified7.1
rmApplied associate-+r+_binary644.7
if 6.6875605826151235e101 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 6.6
rmApplied add-cube-cbrt_binary647.4
Applied add-cube-cbrt_binary647.5
Applied times-frac_binary647.6
Applied associate-*r*_binary643.7
Final simplification5.7
herbie shell --seed 2021126
(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)))))