Average Error: 0.0 → 0.0
Time: 4.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 r139744 = x;
        double r139745 = y;
        double r139746 = r139744 - r139745;
        double r139747 = 1.0;
        double r139748 = r139747 - r139745;
        double r139749 = r139746 / r139748;
        return r139749;
}

double f(double x, double y) {
        double r139750 = x;
        double r139751 = y;
        double r139752 = r139750 - r139751;
        double r139753 = 1.0;
        double r139754 = r139753 - r139751;
        double r139755 = r139752 / r139754;
        return r139755;
}

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