Average Error: 0.0 → 0.0
Time: 883.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 r126411 = x;
        double r126412 = y;
        double r126413 = r126411 - r126412;
        double r126414 = 1.0;
        double r126415 = r126414 - r126412;
        double r126416 = r126413 / r126415;
        return r126416;
}

double f(double x, double y) {
        double r126417 = x;
        double r126418 = y;
        double r126419 = r126417 - r126418;
        double r126420 = 1.0;
        double r126421 = r126420 - r126418;
        double r126422 = r126419 / r126421;
        return r126422;
}

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)))