Average Error: 0.3 → 0.0
Time: 8.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 r932768 = x;
        double r932769 = log(r932768);
        double r932770 = log(r932769);
        double r932771 = r932769 - r932770;
        return r932771;
}

double f(double x) {
        double r932772 = x;
        double r932773 = log(r932772);
        double r932774 = r932772 / r932773;
        double r932775 = log(r932774);
        return r932775;
}

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 2019125 
(FPCore (x)
  :name "Jmat.Real.lambertw, estimator"
  (- (log x) (log (log x))))