x + \left(y - z\right) \cdot \frac{t - x}{a - z}\begin{array}{l}
\mathbf{if}\;a \le -6.2270682752499666 \cdot 10^{-75}:\\
\;\;\;\;\mathsf{fma}\left(y - z, \left(t - x\right) \cdot \frac{1}{a - z}, x\right)\\
\mathbf{elif}\;a \le 1.0238132444880358 \cdot 10^{-110}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x}{z}, y, t - \frac{t \cdot y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\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 ((a <= -6.227068275249967e-75)) {
VAR = fma((y - z), ((t - x) * (1.0 / (a - z))), x);
} else {
double VAR_1;
if ((a <= 1.0238132444880358e-110)) {
VAR_1 = fma((x / z), y, (t - ((t * y) / z)));
} else {
VAR_1 = fma((t - x), ((y - z) / (a - z)), x);
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a
Results
if a < -6.227068275249967e-75Initial program 10.3
Simplified10.3
rmApplied div-inv10.3
if -6.227068275249967e-75 < a < 1.0238132444880358e-110Initial program 25.2
Simplified25.2
rmApplied div-inv25.2
Taylor expanded around inf 16.4
Simplified15.4
if 1.0238132444880358e-110 < a Initial program 11.1
Simplified11.0
rmApplied div-inv11.0
rmApplied fma-udef11.1
Simplified11.1
rmApplied div-inv11.1
Applied associate-*l*9.2
Simplified9.1
rmApplied fma-def9.1
Final simplification11.5
herbie shell --seed 2020075 +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)))))