Average Error: 0.0 → 0.0
Time: 6.5s
Precision: 64
\[\frac{1}{x - 1}\]
\[\frac{1}{x - 1}\]
\frac{1}{x - 1}
\frac{1}{x - 1}
double f(double x) {
        double r2100916 = 1.0;
        double r2100917 = x;
        double r2100918 = r2100917 - r2100916;
        double r2100919 = r2100916 / r2100918;
        return r2100919;
}

double f(double x) {
        double r2100920 = 1.0;
        double r2100921 = x;
        double r2100922 = r2100921 - r2100920;
        double r2100923 = r2100920 / r2100922;
        return r2100923;
}

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

    \[\frac{1}{x - 1}\]
  2. Final simplification0.0

    \[\leadsto \frac{1}{x - 1}\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "1 / (x-1)"
  :precision binary64
  (/ 1 (- x 1)))