Average Error: 0.0 → 0.0
Time: 5.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 r6340690 = x;
        double r6340691 = y;
        double r6340692 = r6340690 - r6340691;
        double r6340693 = 1.0;
        double r6340694 = r6340693 - r6340691;
        double r6340695 = r6340692 / r6340694;
        return r6340695;
}

double f(double x, double y) {
        double r6340696 = x;
        double r6340697 = y;
        double r6340698 = r6340696 - r6340697;
        double r6340699 = 1.0;
        double r6340700 = r6340699 - r6340697;
        double r6340701 = r6340698 / r6340700;
        return r6340701;
}

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