Pmin + \frac{\left(Pmax - Pmin\right) \cdot R}{100}Pmin + \frac{\left(Pmax - Pmin\right) \cdot R}{100}double code(double Pmin, double Pmax, double R) {
return ((double) (Pmin + ((double) (((double) (((double) (Pmax - Pmin)) * R)) / 100.0))));
}
double code(double Pmin, double Pmax, double R) {
return ((double) (Pmin + ((double) (((double) (((double) (Pmax - Pmin)) * R)) / 100.0))));
}



Bits error versus Pmin



Bits error versus Pmax



Bits error versus R
Results
Initial program 0.3
Final simplification0.3
herbie shell --seed 2020153
(FPCore (Pmin Pmax R)
:name "(+ Pmin (/ (* (- Pmax Pmin) R) 100))"
:precision binary64
(+ Pmin (/ (* (- Pmax Pmin) R) 100.0)))