Average Error: 0.0 → 0.0
Time: 5.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 r95456 = x;
        double r95457 = y;
        double r95458 = r95456 - r95457;
        double r95459 = 1.0;
        double r95460 = r95459 - r95457;
        double r95461 = r95458 / r95460;
        return r95461;
}

double f(double x, double y) {
        double r95462 = x;
        double r95463 = y;
        double r95464 = r95462 - r95463;
        double r95465 = 1.0;
        double r95466 = r95465 - r95463;
        double r95467 = r95464 / r95466;
        return r95467;
}

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