Average Error: 0.3 → 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 r3712933 = x;
        double r3712934 = log(r3712933);
        double r3712935 = log(r3712934);
        double r3712936 = r3712934 - r3712935;
        return r3712936;
}

double f(double x) {
        double r3712937 = x;
        double r3712938 = log(r3712937);
        double r3712939 = r3712937 / r3712938;
        double r3712940 = log(r3712939);
        return r3712940;
}

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