\frac{x - y}{z - y} \cdot t\begin{array}{l}
\mathbf{if}\;t \le -9.45452527082978066 \cdot 10^{132} \lor \neg \left(t \le 5.664138942320091 \cdot 10^{-76}\right):\\
\;\;\;\;\left(\frac{x}{z - y} - \frac{y}{z - y}\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z - y} \cdot \left(\left(x - y\right) \cdot t\right)\\
\end{array}double code(double x, double y, double z, double t) {
return ((double) (((double) (((double) (x - y)) / ((double) (z - y)))) * t));
}
double code(double x, double y, double z, double t) {
double VAR;
if (((t <= -9.454525270829781e+132) || !(t <= 5.664138942320091e-76))) {
VAR = ((double) (((double) (((double) (x / ((double) (z - y)))) - ((double) (y / ((double) (z - y)))))) * t));
} else {
VAR = ((double) (((double) (1.0 / ((double) (z - y)))) * ((double) (((double) (x - y)) * t))));
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 2.1 |
|---|---|
| Target | 2.1 |
| Herbie | 3.1 |
if t < -9.45452527082978066e132 or 5.664138942320091e-76 < t Initial program 2.0
rmApplied div-sub2.0
if -9.45452527082978066e132 < t < 5.664138942320091e-76Initial program 2.1
rmApplied div-sub2.1
rmApplied div-inv2.2
Applied div-inv2.2
Applied distribute-rgt-out--2.2
Applied associate-*l*3.9
Final simplification3.1
herbie shell --seed 2020173
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cput from hsignal-0.2.7.1"
:precision binary64
:herbie-target
(/ t (/ (- z y) (- x y)))
(* (/ (- x y) (- z y)) t))