Average Error: 0.0 → 0.0
Time: 1.1s
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 r182413 = x;
        double r182414 = y;
        double r182415 = r182413 - r182414;
        double r182416 = 1.0;
        double r182417 = r182416 - r182414;
        double r182418 = r182415 / r182417;
        return r182418;
}

double f(double x, double y) {
        double r182419 = x;
        double r182420 = y;
        double r182421 = r182419 - r182420;
        double r182422 = 1.0;
        double r182423 = r182422 - r182420;
        double r182424 = r182421 / r182423;
        return r182424;
}

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 2020056 +o rules:numerics
(FPCore (x y)
  :name "Diagrams.Trail:splitAtParam  from diagrams-lib-1.3.0.3, C"
  :precision binary64
  (/ (- x y) (- 1 y)))