Average Error: 0.0 → 0.0
Time: 11.6s
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 r127194 = x;
        double r127195 = y;
        double r127196 = r127194 - r127195;
        double r127197 = 1.0;
        double r127198 = r127197 - r127195;
        double r127199 = r127196 / r127198;
        return r127199;
}

double f(double x, double y) {
        double r127200 = x;
        double r127201 = y;
        double r127202 = r127200 - r127201;
        double r127203 = 1.0;
        double r127204 = r127203 - r127201;
        double r127205 = r127202 / r127204;
        return r127205;
}

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