Average Error: 0.3 → 0.0
Time: 4.5s
Precision: 64
\[\log x - \log \left(\log x\right)\]
\[\log \left(\frac{-1 \cdot x}{\log \left(\frac{1}{x}\right)}\right)\]
\log x - \log \left(\log x\right)
\log \left(\frac{-1 \cdot x}{\log \left(\frac{1}{x}\right)}\right)
double f(double x) {
        double r106436 = x;
        double r106437 = log(r106436);
        double r106438 = log(r106437);
        double r106439 = r106437 - r106438;
        return r106439;
}

double f(double x) {
        double r106440 = -1.0;
        double r106441 = x;
        double r106442 = r106440 * r106441;
        double r106443 = 1.0;
        double r106444 = r106443 / r106441;
        double r106445 = log(r106444);
        double r106446 = r106442 / r106445;
        double r106447 = log(r106446);
        return r106447;
}

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

    \[\log x - \log \left(\log x\right)\]
  2. Using strategy rm
  3. Applied diff-log0.0

    \[\leadsto \color{blue}{\log \left(\frac{x}{\log x}\right)}\]
  4. Using strategy rm
  5. Applied frac-2neg0.0

    \[\leadsto \log \color{blue}{\left(\frac{-x}{-\log x}\right)}\]
  6. Simplified0.0

    \[\leadsto \log \left(\frac{\color{blue}{-1 \cdot x}}{-\log x}\right)\]
  7. Simplified0.0

    \[\leadsto \log \left(\frac{-1 \cdot x}{\color{blue}{\log \left(\frac{1}{x}\right)}}\right)\]
  8. Final simplification0.0

    \[\leadsto \log \left(\frac{-1 \cdot x}{\log \left(\frac{1}{x}\right)}\right)\]

Reproduce

herbie shell --seed 2019322 
(FPCore (x)
  :name "Jmat.Real.lambertw, estimator"
  :precision binary64
  (- (log x) (log (log x))))