Average Error: 0.0 → 0.0
Time: 2.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 r201971 = x;
        double r201972 = y;
        double r201973 = r201971 - r201972;
        double r201974 = 1.0;
        double r201975 = r201974 - r201972;
        double r201976 = r201973 / r201975;
        return r201976;
}

double f(double x, double y) {
        double r201977 = x;
        double r201978 = y;
        double r201979 = r201977 - r201978;
        double r201980 = 1.0;
        double r201981 = r201980 - r201978;
        double r201982 = r201979 / r201981;
        return r201982;
}

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