1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}1 - \frac{1}{\frac{y - z}{\frac{x}{y - t}}}(FPCore (x y z t) :precision binary64 (- 1.0 (/ x (* (- y z) (- y t)))))
(FPCore (x y z t) :precision binary64 (- 1.0 (/ 1.0 (/ (- y z) (/ x (- y t))))))
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) {
return 1.0 - (1.0 / ((y - z) / (x / (y - t))));
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t
Results
Initial program 0.6
rmApplied clear-num_binary640.7
Simplified1.2
Final simplification1.2
herbie shell --seed 2020253
(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)))))