Average Error: 0.0 → 0.0
Time: 9.1s
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 r758735 = x;
        double r758736 = y;
        double r758737 = r758735 - r758736;
        double r758738 = 1.0;
        double r758739 = r758738 - r758736;
        double r758740 = r758737 / r758739;
        return r758740;
}

double f(double x, double y) {
        double r758741 = x;
        double r758742 = y;
        double r758743 = r758741 - r758742;
        double r758744 = 1.0;
        double r758745 = r758744 - r758742;
        double r758746 = r758743 / r758745;
        return r758746;
}

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