x \cdot \log x
x \cdot \log \left(\sqrt{x}\right) + x \cdot \log \left(\sqrt{x}\right)double code(double x) {
return ((double) (x * ((double) log(x))));
}
double code(double x) {
return ((double) (((double) (x * ((double) log(((double) sqrt(x)))))) + ((double) (x * ((double) log(((double) sqrt(x))))))));
}



Bits error versus x
Results
Initial program Error: 0.3 bits
rmApplied add-sqr-sqrtError: 0.3 bits
Applied log-prodError: 0.3 bits
Applied distribute-lft-inError: 0.3 bits
Final simplificationError: 0.3 bits
herbie shell --seed 2020200
(FPCore (x)
:name "Statistics.Distribution.Binomial:directEntropy from math-functions-0.1.5.2"
:precision binary64
(* x (log x)))