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



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t
Results
Initial program 0.8
rmApplied div-inv_binary640.9
Simplified0.9
rmApplied add-sqr-sqrt_binary640.9
Applied associate-/l*_binary640.9
Simplified0.9
Final simplification0.9
herbie shell --seed 2021207
(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)))))