Average Error: 0.0 → 0.0
Time: 6.6s
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 r141786 = x;
        double r141787 = y;
        double r141788 = r141786 - r141787;
        double r141789 = 1.0;
        double r141790 = r141789 - r141787;
        double r141791 = r141788 / r141790;
        return r141791;
}

double f(double x, double y) {
        double r141792 = x;
        double r141793 = y;
        double r141794 = r141792 - r141793;
        double r141795 = 1.0;
        double r141796 = r141795 - r141793;
        double r141797 = r141794 / r141796;
        return r141797;
}

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