Average Error: 0.3 → 0.0
Time: 12.5s
Precision: 64
\[\log x - \log \left(\log x\right)\]
\[\log \left(\frac{1}{\sqrt{\log x}} \cdot \frac{x}{\sqrt{\log x}}\right)\]
\log x - \log \left(\log x\right)
\log \left(\frac{1}{\sqrt{\log x}} \cdot \frac{x}{\sqrt{\log x}}\right)
double f(double x) {
        double r3520817 = x;
        double r3520818 = log(r3520817);
        double r3520819 = log(r3520818);
        double r3520820 = r3520818 - r3520819;
        return r3520820;
}

double f(double x) {
        double r3520821 = 1.0;
        double r3520822 = x;
        double r3520823 = log(r3520822);
        double r3520824 = sqrt(r3520823);
        double r3520825 = r3520821 / r3520824;
        double r3520826 = r3520822 / r3520824;
        double r3520827 = r3520825 * r3520826;
        double r3520828 = log(r3520827);
        return r3520828;
}

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. Using strategy rm
  5. Applied add-sqr-sqrt0.0

    \[\leadsto \log \left(\frac{x}{\color{blue}{\sqrt{\log x} \cdot \sqrt{\log x}}}\right)\]
  6. Applied *-un-lft-identity0.0

    \[\leadsto \log \left(\frac{\color{blue}{1 \cdot x}}{\sqrt{\log x} \cdot \sqrt{\log x}}\right)\]
  7. Applied times-frac0.0

    \[\leadsto \log \color{blue}{\left(\frac{1}{\sqrt{\log x}} \cdot \frac{x}{\sqrt{\log x}}\right)}\]
  8. Final simplification0.0

    \[\leadsto \log \left(\frac{1}{\sqrt{\log x}} \cdot \frac{x}{\sqrt{\log x}}\right)\]

Reproduce

herbie shell --seed 2019179 
(FPCore (x)
  :name "Jmat.Real.lambertw, estimator"
  (- (log x) (log (log x))))