Average Error: 0.0 → 0.0
Time: 13.9s
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 r133293 = x;
        double r133294 = y;
        double r133295 = r133293 - r133294;
        double r133296 = 1.0;
        double r133297 = r133296 - r133294;
        double r133298 = r133295 / r133297;
        return r133298;
}

double f(double x, double y) {
        double r133299 = x;
        double r133300 = y;
        double r133301 = r133299 - r133300;
        double r133302 = 1.0;
        double r133303 = r133302 - r133300;
        double r133304 = r133301 / r133303;
        return r133304;
}

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