Average Error: 0.3 → 0.0
Time: 2.8s
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 r112838 = x;
        double r112839 = log(r112838);
        double r112840 = log(r112839);
        double r112841 = r112839 - r112840;
        return r112841;
}

double f(double x) {
        double r112842 = x;
        double r112843 = log(r112842);
        double r112844 = r112842 / r112843;
        double r112845 = log(r112844);
        return r112845;
}

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