Average Error: 0.0 → 0.0
Time: 4.5s
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 r171277 = x;
        double r171278 = y;
        double r171279 = r171277 - r171278;
        double r171280 = 1.0;
        double r171281 = r171280 - r171278;
        double r171282 = r171279 / r171281;
        return r171282;
}

double f(double x, double y) {
        double r171283 = x;
        double r171284 = y;
        double r171285 = r171283 - r171284;
        double r171286 = 1.0;
        double r171287 = r171286 - r171284;
        double r171288 = r171285 / r171287;
        return r171288;
}

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