double code(double x, double y, double z, double t, double a) {
return ((double) (x + ((double) (((double) (y - z)) * ((double) (((double) (t - x)) / ((double) (a - z))))))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if (((((double) (x + ((double) (((double) (y - z)) * ((double) (((double) (t - x)) / ((double) (a - z)))))))) <= -2.1718124460428677e-301) || !(((double) (x + ((double) (((double) (y - z)) * ((double) (((double) (t - x)) / ((double) (a - z)))))))) <= 2.0370627339380409e-289))) {
VAR = ((double) (x + ((double) (((double) (((double) cbrt(((double) (t - x)))) / ((double) cbrt(((double) (a - z)))))) * ((double) (((double) (((double) cbrt(((double) (y - z)))) * ((double) cbrt(((double) (y - z)))))) * ((double) (((double) (((double) cbrt(((double) (t - x)))) / ((double) cbrt(((double) (a - z)))))) * ((double) (((double) cbrt(((double) (y - z)))) * ((double) (((double) cbrt(((double) (t - x)))) / ((double) cbrt(((double) (a - z))))))))))))))));
} else {
VAR = ((double) (t + ((double) (y * ((double) (((double) (x / z)) - ((double) (t / 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 (+ x (* (- y z) (/ (- t x) (- a z)))) < -2.1718124460428677e-301 or 2.03706273393804e-289 < (+ x (* (- y z) (/ (- t x) (- a z)))) Initial program 7.6
rmApplied add-cube-cbrt8.3
Applied add-cube-cbrt8.5
Applied times-frac8.5
Applied associate-*r*4.5
Simplified4.5
rmApplied add-cube-cbrt4.5
Applied associate-*l*4.5
Simplified4.2
if -2.1718124460428677e-301 < (+ x (* (- y z) (/ (- t x) (- a z)))) < 2.03706273393804e-289Initial program 61.1
Taylor expanded around inf 25.9
Simplified20.8
Final simplification6.6
herbie shell --seed 2020190
(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)))))