Average Error: 0.3 → 0.0
Time: 8.4s
Precision: 64
\[\log x - \log \left(\log x\right)\]
\[\log \left(\frac{x}{\log x}\right)\]
\log x - \log \left(\log x\right)
\log \left(\frac{x}{\log x}\right)
double f(double x) {
        double r3988618 = x;
        double r3988619 = log(r3988618);
        double r3988620 = log(r3988619);
        double r3988621 = r3988619 - r3988620;
        return r3988621;
}

double f(double x) {
        double r3988622 = x;
        double r3988623 = log(r3988622);
        double r3988624 = r3988622 / r3988623;
        double r3988625 = log(r3988624);
        return r3988625;
}

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. Final simplification0.0

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

Reproduce

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