Average Error: 0.2 → 0
Time: 778.0ms
Precision: 64
\[x \cdot \frac{1}{x}\]
\[1\]
x \cdot \frac{1}{x}
1
double f(double x) {
        double r1934495 = x;
        double r1934496 = 1.0;
        double r1934497 = r1934496 / r1934495;
        double r1934498 = r1934495 * r1934497;
        return r1934498;
}

double f(double __attribute__((unused)) x) {
        double r1934499 = 1.0;
        return r1934499;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[x \cdot \frac{1}{x}\]
  2. Simplified0

    \[\leadsto \color{blue}{1}\]
  3. Final simplification0

    \[\leadsto 1\]

Reproduce

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