Average Error: 0.3 → 0.0
Time: 10.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 r2907064 = x;
        double r2907065 = log(r2907064);
        double r2907066 = log(r2907065);
        double r2907067 = r2907065 - r2907066;
        return r2907067;
}

double f(double x) {
        double r2907068 = x;
        double r2907069 = log(r2907068);
        double r2907070 = r2907068 / r2907069;
        double r2907071 = log(r2907070);
        return r2907071;
}

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 add-log-exp0.3

    \[\leadsto \color{blue}{\log \left(e^{\log x - \log \left(\log x\right)}\right)}\]
  4. Simplified0.0

    \[\leadsto \log \color{blue}{\left(\frac{x}{\log x}\right)}\]
  5. Final simplification0.0

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

Reproduce

herbie shell --seed 2019144 +o rules:numerics
(FPCore (x)
  :name "Jmat.Real.lambertw, estimator"
  (- (log x) (log (log x))))