Average Error: 0.0 → 0.0
Time: 8.9s
Precision: 64
\[1 + \frac{1}{\left|\log x\right|}\]
\[1 + \frac{1}{\left|\log x\right|}\]
1 + \frac{1}{\left|\log x\right|}
1 + \frac{1}{\left|\log x\right|}
double f(double x) {
        double r1829975 = 1.0;
        double r1829976 = x;
        double r1829977 = log(r1829976);
        double r1829978 = fabs(r1829977);
        double r1829979 = r1829975 / r1829978;
        double r1829980 = r1829975 + r1829979;
        return r1829980;
}

double f(double x) {
        double r1829981 = 1.0;
        double r1829982 = x;
        double r1829983 = log(r1829982);
        double r1829984 = fabs(r1829983);
        double r1829985 = r1829981 / r1829984;
        double r1829986 = r1829981 + r1829985;
        return r1829986;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[1 + \frac{1}{\left|\log x\right|}\]
  2. Final simplification0.0

    \[\leadsto 1 + \frac{1}{\left|\log x\right|}\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "1+1/abs(log(x))"
  :precision binary64
  (+ 1 (/ 1 (fabs (log x)))))