Average Error: 0.0 → 0.0
Time: 3.2s
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 r204458 = x;
        double r204459 = y;
        double r204460 = r204458 - r204459;
        double r204461 = 1.0;
        double r204462 = r204461 - r204459;
        double r204463 = r204460 / r204462;
        return r204463;
}

double f(double x, double y) {
        double r204464 = x;
        double r204465 = y;
        double r204466 = r204464 - r204465;
        double r204467 = 1.0;
        double r204468 = r204467 - r204465;
        double r204469 = r204466 / r204468;
        return r204469;
}

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