Average Error: 0.0 → 0.0
Time: 1.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 r137781 = x;
        double r137782 = y;
        double r137783 = r137781 - r137782;
        double r137784 = 1.0;
        double r137785 = r137784 - r137782;
        double r137786 = r137783 / r137785;
        return r137786;
}

double f(double x, double y) {
        double r137787 = x;
        double r137788 = y;
        double r137789 = r137787 - r137788;
        double r137790 = 1.0;
        double r137791 = r137790 - r137788;
        double r137792 = r137789 / r137791;
        return r137792;
}

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