Average Error: 0.0 → 0.0
Time: 1.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 r144979 = x;
        double r144980 = y;
        double r144981 = r144979 - r144980;
        double r144982 = 1.0;
        double r144983 = r144982 - r144980;
        double r144984 = r144981 / r144983;
        return r144984;
}

double f(double x, double y) {
        double r144985 = x;
        double r144986 = y;
        double r144987 = r144985 - r144986;
        double r144988 = 1.0;
        double r144989 = r144988 - r144986;
        double r144990 = r144987 / r144989;
        return r144990;
}

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