\log \left(\frac{\mathsf{lgamma} \left( x \right)}{\log x}\right)\log \left(\frac{\mathsf{lgamma} \left( x \right)}{\log x}\right)double code(double x) {
return ((double) log(((double) (((double) lgamma(x)) / ((double) log(x))))));
}
double code(double x) {
return ((double) log(((double) (((double) lgamma(x)) / ((double) log(x))))));
}



Bits error versus x
Results
Initial program 0.6
Final simplification0.6
herbie shell --seed 2020153
(FPCore (x)
:name "(log (/ (lgamma x) (log x)))"
:precision binary64
(log (/ (lgamma x) (log x))))