Average Error: 0.0 → 0.0
Time: 2.2s
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 r209870 = x;
        double r209871 = y;
        double r209872 = r209870 - r209871;
        double r209873 = 1.0;
        double r209874 = r209873 - r209871;
        double r209875 = r209872 / r209874;
        return r209875;
}

double f(double x, double y) {
        double r209876 = x;
        double r209877 = y;
        double r209878 = r209876 - r209877;
        double r209879 = 1.0;
        double r209880 = r209879 - r209877;
        double r209881 = r209878 / r209880;
        return r209881;
}

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