Average Error: 0.3 → 0.0
Time: 9.2s
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 r20378 = x;
        double r20379 = log(r20378);
        double r20380 = log(r20379);
        double r20381 = r20379 - r20380;
        return r20381;
}

double f(double x) {
        double r20382 = x;
        double r20383 = log(r20382);
        double r20384 = r20382 / r20383;
        double r20385 = log(r20384);
        return r20385;
}

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