Average Error: 0.0 → 0.0
Time: 386.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 r180446 = x;
        double r180447 = y;
        double r180448 = r180446 - r180447;
        double r180449 = 1.0;
        double r180450 = r180449 - r180447;
        double r180451 = r180448 / r180450;
        return r180451;
}

double f(double x, double y) {
        double r180452 = x;
        double r180453 = y;
        double r180454 = r180452 - r180453;
        double r180455 = 1.0;
        double r180456 = r180455 - r180453;
        double r180457 = r180454 / r180456;
        return r180457;
}

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