\log \left(\frac{rh}{100}\right) + \frac{b \cdot temp}{c + temp}\log \left(\frac{rh}{100}\right) + \frac{b \cdot temp}{c + temp}double code(double rh, double b, double temp, double c) {
return ((double) (((double) log(((double) (rh / 100.0)))) + ((double) (((double) (b * temp)) / ((double) (c + temp))))));
}
double code(double rh, double b, double temp, double c) {
return ((double) (((double) log(((double) (rh / 100.0)))) + ((double) (((double) (b * temp)) / ((double) (c + temp))))));
}



Bits error versus rh



Bits error versus b



Bits error versus temp



Bits error versus c
Results
Initial program 8.4
Final simplification8.4
herbie shell --seed 2020153
(FPCore (rh b temp c)
:name "(+ (log (/ rh 100.0)) (/ (* b temp) (+ c temp)))"
:precision binary64
(+ (log (/ rh 100.0)) (/ (* b temp) (+ c temp))))