Average Error: 0.3 → 0.0
Time: 8.6s
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 r2867909 = x;
        double r2867910 = log(r2867909);
        double r2867911 = log(r2867910);
        double r2867912 = r2867910 - r2867911;
        return r2867912;
}

double f(double x) {
        double r2867913 = x;
        double r2867914 = log(r2867913);
        double r2867915 = r2867913 / r2867914;
        double r2867916 = log(r2867915);
        return r2867916;
}

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 +o rules:numerics
(FPCore (x)
  :name "Jmat.Real.lambertw, estimator"
  (- (log x) (log (log x))))