Average Error: 0.0 → 0.0
Time: 3.3s
Precision: 64
\[\frac{1}{x - y}\]
\[\frac{1}{x - y}\]
\frac{1}{x - y}
\frac{1}{x - y}
double f(double x, double y) {
        double r56166091 = 1.0;
        double r56166092 = x;
        double r56166093 = y;
        double r56166094 = r56166092 - r56166093;
        double r56166095 = r56166091 / r56166094;
        return r56166095;
}

double f(double x, double y) {
        double r56166096 = 1.0;
        double r56166097 = x;
        double r56166098 = y;
        double r56166099 = r56166097 - r56166098;
        double r56166100 = r56166096 / r56166099;
        return r56166100;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

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

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

Reproduce

herbie shell --seed 1 
(FPCore (x y)
  :name "1 / (x - y)"
  (/ 1.0 (- x y)))