Average Error: 0.2 → 0.0
Time: 9.1s
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 r2382017 = x;
        double r2382018 = log(r2382017);
        double r2382019 = log(r2382018);
        double r2382020 = r2382018 - r2382019;
        return r2382020;
}

double f(double x) {
        double r2382021 = x;
        double r2382022 = log(r2382021);
        double r2382023 = r2382021 / r2382022;
        double r2382024 = log(r2382023);
        return r2382024;
}

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))))