x \cdot \log x
\mathsf{fma}\left(x, 2 \cdot \log \left(\sqrt[3]{x}\right), x \cdot \log \left(\sqrt[3]{x}\right)\right)double code(double x) {
return (x * log(x));
}
double code(double x) {
return fma(x, (2.0 * log(cbrt(x))), (x * log(cbrt(x))));
}



Bits error versus x
Results
Initial program 0.3
rmApplied add-cube-cbrt0.3
Applied log-prod0.4
Applied distribute-lft-in0.4
Simplified0.4
rmApplied fma-def0.3
Final simplification0.3
herbie shell --seed 2020100 +o rules:numerics
(FPCore (x)
:name "Statistics.Distribution.Binomial:directEntropy from math-functions-0.1.5.2"
:precision binary64
(* x (log x)))