Average Error: 0.0 → 0.0
Time: 864.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 r164117 = x;
        double r164118 = y;
        double r164119 = r164117 - r164118;
        double r164120 = 1.0;
        double r164121 = r164120 - r164118;
        double r164122 = r164119 / r164121;
        return r164122;
}

double f(double x, double y) {
        double r164123 = x;
        double r164124 = y;
        double r164125 = r164123 - r164124;
        double r164126 = 1.0;
        double r164127 = r164126 - r164124;
        double r164128 = r164125 / r164127;
        return r164128;
}

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