Average Error: 0.0 → 0.0
Time: 1.0s
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 r145855 = x;
        double r145856 = y;
        double r145857 = r145855 - r145856;
        double r145858 = 1.0;
        double r145859 = r145858 - r145856;
        double r145860 = r145857 / r145859;
        return r145860;
}

double f(double x, double y) {
        double r145861 = x;
        double r145862 = y;
        double r145863 = r145861 - r145862;
        double r145864 = 1.0;
        double r145865 = r145864 - r145862;
        double r145866 = r145863 / r145865;
        return r145866;
}

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