Average Error: 0.0 → 0.0
Time: 12.4s
Precision: 64
\[\frac{x - y}{1.0 - y}\]
\[\frac{x - y}{1.0 - y}\]
\frac{x - y}{1.0 - y}
\frac{x - y}{1.0 - y}
double f(double x, double y) {
        double r8641605 = x;
        double r8641606 = y;
        double r8641607 = r8641605 - r8641606;
        double r8641608 = 1.0;
        double r8641609 = r8641608 - r8641606;
        double r8641610 = r8641607 / r8641609;
        return r8641610;
}

double f(double x, double y) {
        double r8641611 = x;
        double r8641612 = y;
        double r8641613 = r8641611 - r8641612;
        double r8641614 = 1.0;
        double r8641615 = r8641614 - r8641612;
        double r8641616 = r8641613 / r8641615;
        return r8641616;
}

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.0 - y}\]
  2. Final simplification0.0

    \[\leadsto \frac{x - y}{1.0 - y}\]

Reproduce

herbie shell --seed 2019164 +o rules:numerics
(FPCore (x y)
  :name "Diagrams.Trail:splitAtParam  from diagrams-lib-1.3.0.3, C"
  (/ (- x y) (- 1.0 y)))