Average Error: 0.0 → 0.0
Time: 851.0ms
Precision: 64
\[\frac{x - y}{1 - y}\]
\[\frac{x - y}{1 - y}\]
\frac{x - y}{1 - y}
\frac{x - y}{1 - y}
double f(double x, double y) {
        double r159234 = x;
        double r159235 = y;
        double r159236 = r159234 - r159235;
        double r159237 = 1.0;
        double r159238 = r159237 - r159235;
        double r159239 = r159236 / r159238;
        return r159239;
}

double f(double x, double y) {
        double r159240 = x;
        double r159241 = y;
        double r159242 = r159240 - r159241;
        double r159243 = 1.0;
        double r159244 = r159243 - r159241;
        double r159245 = r159242 / r159244;
        return r159245;
}

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

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

Reproduce

herbie shell --seed 2020001 +o rules:numerics
(FPCore (x y)
  :name "Diagrams.Trail:splitAtParam  from diagrams-lib-1.3.0.3, C"
  :precision binary64
  (/ (- x y) (- 1 y)))