Average Error: 0.0 → 0.0
Time: 17.7s
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 r181683 = x;
        double r181684 = y;
        double r181685 = r181683 - r181684;
        double r181686 = 1.0;
        double r181687 = r181686 - r181684;
        double r181688 = r181685 / r181687;
        return r181688;
}

double f(double x, double y) {
        double r181689 = x;
        double r181690 = y;
        double r181691 = r181689 - r181690;
        double r181692 = 1.0;
        double r181693 = r181692 - r181690;
        double r181694 = r181691 / r181693;
        return r181694;
}

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