x \cdot \log x
x \cdot \log \left(\sqrt{x}\right) + x \cdot \log \left(\sqrt{x}\right)double code(double x) {
return (x * log(x));
}
double code(double x) {
return ((x * log(sqrt(x))) + (x * log(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 2020092 +o rules:numerics
(FPCore (x)
:name "Statistics.Distribution.Binomial:directEntropy from math-functions-0.1.5.2"
:precision binary64
(* x (log x)))