Average Error: 0.0 → 0.0
Time: 7.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 r141337 = x;
        double r141338 = y;
        double r141339 = r141337 - r141338;
        double r141340 = 1.0;
        double r141341 = r141340 - r141338;
        double r141342 = r141339 / r141341;
        return r141342;
}

double f(double x, double y) {
        double r141343 = x;
        double r141344 = y;
        double r141345 = r141343 - r141344;
        double r141346 = 1.0;
        double r141347 = r141346 - r141344;
        double r141348 = r141345 / r141347;
        return r141348;
}

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