Average Error: 0.0 → 0.0
Time: 9.9s
Precision: 64
\[\frac{x - y}{x}\]
\[\frac{x - y}{x}\]
\frac{x - y}{x}
\frac{x - y}{x}
double f(double x, double y) {
        double r611628 = x;
        double r611629 = y;
        double r611630 = r611628 - r611629;
        double r611631 = r611630 / r611628;
        return r611631;
}

double f(double x, double y) {
        double r611632 = x;
        double r611633 = y;
        double r611634 = r611632 - r611633;
        double r611635 = r611634 / r611632;
        return r611635;
}

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{x - y}{x}\]
  2. Final simplification0.0

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

Reproduce

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