Average Error: 0.0 → 0.0
Time: 4.4s
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 r118693 = x;
        double r118694 = y;
        double r118695 = r118693 - r118694;
        double r118696 = 1.0;
        double r118697 = r118696 - r118694;
        double r118698 = r118695 / r118697;
        return r118698;
}

double f(double x, double y) {
        double r118699 = x;
        double r118700 = y;
        double r118701 = r118699 - r118700;
        double r118702 = 1.0;
        double r118703 = r118702 - r118700;
        double r118704 = r118701 / r118703;
        return r118704;
}

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)))