Average Error: 0.3 → 0.0
Time: 2.7s
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 r116432 = x;
        double r116433 = log(r116432);
        double r116434 = log(r116433);
        double r116435 = r116433 - r116434;
        return r116435;
}

double f(double x) {
        double r116436 = x;
        double r116437 = log(r116436);
        double r116438 = r116436 / r116437;
        double r116439 = log(r116438);
        return r116439;
}

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