Average Error: 0.0 → 0.0
Time: 1.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 r257505 = x;
        double r257506 = y;
        double r257507 = r257505 - r257506;
        double r257508 = 1.0;
        double r257509 = r257508 - r257506;
        double r257510 = r257507 / r257509;
        return r257510;
}

double f(double x, double y) {
        double r257511 = x;
        double r257512 = y;
        double r257513 = r257511 - r257512;
        double r257514 = 1.0;
        double r257515 = r257514 - r257512;
        double r257516 = r257513 / r257515;
        return r257516;
}

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