Average Error: 0.0 → 0.0
Time: 889.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 r175045 = x;
        double r175046 = y;
        double r175047 = r175045 - r175046;
        double r175048 = 1.0;
        double r175049 = r175048 - r175046;
        double r175050 = r175047 / r175049;
        return r175050;
}

double f(double x, double y) {
        double r175051 = x;
        double r175052 = y;
        double r175053 = r175051 - r175052;
        double r175054 = 1.0;
        double r175055 = r175054 - r175052;
        double r175056 = r175053 / r175055;
        return r175056;
}

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