Average Error: 0 → 0
Time: 1.0s
Precision: 64
\[x \ge 0.0\]
\[\frac{1}{x}\]
\[\frac{1}{x}\]
\frac{1}{x}
\frac{1}{x}
double f(double x) {
        double r16837106 = 1.0;
        double r16837107 = x;
        double r16837108 = r16837106 / r16837107;
        return r16837108;
}

double f(double x) {
        double r16837109 = 1.0;
        double r16837110 = x;
        double r16837111 = r16837109 / r16837110;
        return r16837111;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

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

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

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "1/x"
  :pre (>= x 0.0)
  (/ 1.0 x))