Average Error: 0.0 → 0.0
Time: 4.0s
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 r118665 = x;
        double r118666 = y;
        double r118667 = r118665 - r118666;
        double r118668 = 1.0;
        double r118669 = r118668 - r118666;
        double r118670 = r118667 / r118669;
        return r118670;
}

double f(double x, double y) {
        double r118671 = x;
        double r118672 = y;
        double r118673 = r118671 - r118672;
        double r118674 = 1.0;
        double r118675 = r118674 - r118672;
        double r118676 = r118673 / r118675;
        return r118676;
}

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