Average Error: 0.0 → 0.0
Time: 4.9s
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 r166928 = x;
        double r166929 = y;
        double r166930 = r166928 - r166929;
        double r166931 = 1.0;
        double r166932 = r166931 - r166929;
        double r166933 = r166930 / r166932;
        return r166933;
}

double f(double x, double y) {
        double r166934 = x;
        double r166935 = y;
        double r166936 = r166934 - r166935;
        double r166937 = 1.0;
        double r166938 = r166937 - r166935;
        double r166939 = r166936 / r166938;
        return r166939;
}

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