x \cdot \log x
x \cdot \left(\frac{-1}{2} \cdot \log \left(\frac{1}{x}\right)\right) + x \cdot \log \left(\sqrt{x}\right)double f(double x) {
double r29237 = x;
double r29238 = log(r29237);
double r29239 = r29237 * r29238;
return r29239;
}
double f(double x) {
double r29240 = x;
double r29241 = -0.5;
double r29242 = 1.0;
double r29243 = r29242 / r29240;
double r29244 = log(r29243);
double r29245 = r29241 * r29244;
double r29246 = r29240 * r29245;
double r29247 = sqrt(r29240);
double r29248 = log(r29247);
double r29249 = r29240 * r29248;
double r29250 = r29246 + r29249;
return r29250;
}



Bits error versus x
Results
Initial program 0.3
rmApplied add-sqr-sqrt0.3
Applied log-prod0.3
Applied distribute-lft-in0.3
rmApplied add-cube-cbrt0.3
Applied log-prod0.3
Simplified0.3
Taylor expanded around 0 0.3
Taylor expanded around inf 0.4
Simplified0.3
Final simplification0.3
herbie shell --seed 2019354
(FPCore (x)
:name "Statistics.Distribution.Binomial:directEntropy from math-functions-0.1.5.2"
:precision binary64
(* x (log x)))