Average Error: 0.0 → 0.0
Time: 11.6s
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 r147217 = x;
        double r147218 = y;
        double r147219 = r147217 - r147218;
        double r147220 = 1.0;
        double r147221 = r147220 - r147218;
        double r147222 = r147219 / r147221;
        return r147222;
}

double f(double x, double y) {
        double r147223 = x;
        double r147224 = y;
        double r147225 = r147223 - r147224;
        double r147226 = 1.0;
        double r147227 = r147226 - r147224;
        double r147228 = r147225 / r147227;
        return r147228;
}

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