Average Error: 0.0 → 0.0
Time: 4.8s
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 r229985 = x;
        double r229986 = y;
        double r229987 = r229985 - r229986;
        double r229988 = 1.0;
        double r229989 = r229988 - r229986;
        double r229990 = r229987 / r229989;
        return r229990;
}

double f(double x, double y) {
        double r229991 = x;
        double r229992 = y;
        double r229993 = r229991 - r229992;
        double r229994 = 1.0;
        double r229995 = r229994 - r229992;
        double r229996 = r229993 / r229995;
        return r229996;
}

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