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 0.3
rmApplied add-sqr-sqrt0.3
Applied log-prod0.3
Applied distribute-lft-in0.3
Final simplification0.3
herbie shell --seed 2020161
(FPCore (x)
:name "Statistics.Distribution.Binomial:directEntropy from math-functions-0.1.5.2"
:precision binary64
(* x (log x)))