Average Error: 0.0 → 0.0
Time: 997.0ms
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 r254764 = x;
        double r254765 = y;
        double r254766 = r254764 - r254765;
        double r254767 = 1.0;
        double r254768 = r254767 - r254765;
        double r254769 = r254766 / r254768;
        return r254769;
}

double f(double x, double y) {
        double r254770 = x;
        double r254771 = y;
        double r254772 = r254770 - r254771;
        double r254773 = 1.0;
        double r254774 = r254773 - r254771;
        double r254775 = r254772 / r254774;
        return r254775;
}

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