Average Error: 0.0 → 0.0
Time: 1.2s
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 r215166 = x;
        double r215167 = y;
        double r215168 = r215166 - r215167;
        double r215169 = 1.0;
        double r215170 = r215169 - r215167;
        double r215171 = r215168 / r215170;
        return r215171;
}

double f(double x, double y) {
        double r215172 = x;
        double r215173 = y;
        double r215174 = r215172 - r215173;
        double r215175 = 1.0;
        double r215176 = r215175 - r215173;
        double r215177 = r215174 / r215176;
        return r215177;
}

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