Average Error: 0.0 → 0.0
Time: 396.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 r128832 = x;
        double r128833 = y;
        double r128834 = r128832 - r128833;
        double r128835 = 1.0;
        double r128836 = r128835 - r128833;
        double r128837 = r128834 / r128836;
        return r128837;
}

double f(double x, double y) {
        double r128838 = x;
        double r128839 = y;
        double r128840 = r128838 - r128839;
        double r128841 = 1.0;
        double r128842 = r128841 - r128839;
        double r128843 = r128840 / r128842;
        return r128843;
}

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