Average Error: 0.3 → 0.0
Time: 9.5s
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 r1662663 = x;
        double r1662664 = log(r1662663);
        double r1662665 = log(r1662664);
        double r1662666 = r1662664 - r1662665;
        return r1662666;
}

double f(double x) {
        double r1662667 = x;
        double r1662668 = log(r1662667);
        double r1662669 = r1662667 / r1662668;
        double r1662670 = log(r1662669);
        return r1662670;
}

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