Average Error: 0.3 → 0.3
Time: 5.8s
Precision: 64
\[x \cdot \log x\]
\[x \cdot \left(2 \cdot \log \left(\sqrt[3]{x}\right)\right) + x \cdot \log \left({x}^{\frac{1}{3}}\right)\]
x \cdot \log x
x \cdot \left(2 \cdot \log \left(\sqrt[3]{x}\right)\right) + x \cdot \log \left({x}^{\frac{1}{3}}\right)
double f(double x) {
        double r50672 = x;
        double r50673 = log(r50672);
        double r50674 = r50672 * r50673;
        return r50674;
}

double f(double x) {
        double r50675 = x;
        double r50676 = 2.0;
        double r50677 = cbrt(r50675);
        double r50678 = log(r50677);
        double r50679 = r50676 * r50678;
        double r50680 = r50675 * r50679;
        double r50681 = 0.3333333333333333;
        double r50682 = pow(r50675, r50681);
        double r50683 = log(r50682);
        double r50684 = r50675 * r50683;
        double r50685 = r50680 + r50684;
        return r50685;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.3

    \[x \cdot \log x\]
  2. Using strategy rm
  3. Applied add-cube-cbrt0.3

    \[\leadsto x \cdot \log \color{blue}{\left(\left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right) \cdot \sqrt[3]{x}\right)}\]
  4. Applied log-prod0.4

    \[\leadsto x \cdot \color{blue}{\left(\log \left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right) + \log \left(\sqrt[3]{x}\right)\right)}\]
  5. Applied distribute-lft-in0.4

    \[\leadsto \color{blue}{x \cdot \log \left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right) + x \cdot \log \left(\sqrt[3]{x}\right)}\]
  6. Simplified0.4

    \[\leadsto \color{blue}{x \cdot \left(2 \cdot \log \left(\sqrt[3]{x}\right)\right)} + x \cdot \log \left(\sqrt[3]{x}\right)\]
  7. Using strategy rm
  8. Applied pow1/30.3

    \[\leadsto x \cdot \left(2 \cdot \log \left(\sqrt[3]{x}\right)\right) + x \cdot \log \color{blue}{\left({x}^{\frac{1}{3}}\right)}\]
  9. Final simplification0.3

    \[\leadsto x \cdot \left(2 \cdot \log \left(\sqrt[3]{x}\right)\right) + x \cdot \log \left({x}^{\frac{1}{3}}\right)\]

Reproduce

herbie shell --seed 2020039 
(FPCore (x)
  :name "Statistics.Distribution.Binomial:directEntropy from math-functions-0.1.5.2"
  :precision binary64
  (* x (log x)))