Average Error: 0.2 → 0.0
Time: 9.7s
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 r3836904 = x;
        double r3836905 = log(r3836904);
        double r3836906 = log(r3836905);
        double r3836907 = r3836905 - r3836906;
        return r3836907;
}

double f(double x) {
        double r3836908 = x;
        double r3836909 = log(r3836908);
        double r3836910 = r3836908 / r3836909;
        double r3836911 = log(r3836910);
        return r3836911;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

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