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 r2304659 = x;
        double r2304660 = log(r2304659);
        double r2304661 = log(r2304660);
        double r2304662 = r2304660 - r2304661;
        return r2304662;
}

double f(double x) {
        double r2304663 = x;
        double r2304664 = log(r2304663);
        double r2304665 = r2304663 / r2304664;
        double r2304666 = log(r2304665);
        return r2304666;
}

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