1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}\begin{array}{l}
\mathbf{if}\;x \le -3.1853581668252757 \cdot 10^{92}:\\
\;\;\;\;1 - x \cdot \frac{1}{\left(y - z\right) \cdot \left(y - t\right)}\\
\mathbf{elif}\;x \le 5.61170751794338 \cdot 10^{244}:\\
\;\;\;\;1 - \frac{\frac{x}{y - t}}{y - z}\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{1}{\frac{\left(y - z\right) \cdot \left(y - t\right)}{x}}\\
\end{array}double code(double x, double y, double z, double t) {
return (1.0 - (x / ((y - z) * (y - t))));
}
double code(double x, double y, double z, double t) {
double VAR;
if ((x <= -3.1853581668252757e+92)) {
VAR = (1.0 - (x * (1.0 / ((y - z) * (y - t)))));
} else {
double VAR_1;
if ((x <= 5.611707517943382e+244)) {
VAR_1 = (1.0 - ((x / (y - t)) / (y - z)));
} else {
VAR_1 = (1.0 - (1.0 / (((y - z) * (y - t)) / x)));
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t
Results
if x < -3.1853581668252757e+92Initial program 0.1
rmApplied div-inv0.1
if -3.1853581668252757e+92 < x < 5.611707517943382e+244Initial program 0.8
rmApplied div-inv0.9
rmApplied *-un-lft-identity0.9
Applied times-frac0.9
Applied associate-*r*0.4
Simplified0.4
rmApplied associate-*l/0.4
Simplified0.4
if 5.611707517943382e+244 < x Initial program 0.2
rmApplied clear-num0.2
Final simplification0.3
herbie shell --seed 2020092 +o rules:numerics
(FPCore (x y z t)
:name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, A"
:precision binary64
(- 1 (/ x (* (- y z) (- y t)))))