1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}1 + \frac{x}{y - t} \cdot \frac{-1}{y - z}(FPCore (x y z t) :precision binary64 (- 1.0 (/ x (* (- y z) (- y t)))))
(FPCore (x y z t) :precision binary64 (+ 1.0 (* (/ x (- y t)) (/ -1.0 (- y z)))))
double code(double x, double y, double z, double t) {
return ((double) (1.0 - (x / ((double) (((double) (y - z)) * ((double) (y - t)))))));
}
double code(double x, double y, double z, double t) {
return ((double) (1.0 + ((double) ((x / ((double) (y - t))) * (-1.0 / ((double) (y - z)))))));
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t
Results
Initial program 0.7
rmApplied *-un-lft-identity0.7
Applied times-frac1.1
Final simplification1.1
herbie shell --seed 2020198
(FPCore (x y z t)
:name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, A"
:precision binary64
(- 1.0 (/ x (* (- y z) (- y t)))))