Average Error: 0.0 → 0.0
Time: 999.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 r205158 = x;
        double r205159 = y;
        double r205160 = r205158 - r205159;
        double r205161 = 1.0;
        double r205162 = r205161 - r205159;
        double r205163 = r205160 / r205162;
        return r205163;
}

double f(double x, double y) {
        double r205164 = x;
        double r205165 = y;
        double r205166 = r205164 - r205165;
        double r205167 = 1.0;
        double r205168 = r205167 - r205165;
        double r205169 = r205166 / r205168;
        return r205169;
}

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