Average Error: 0.0 → 0.0
Time: 1.2s
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 r150499 = x;
        double r150500 = y;
        double r150501 = r150499 - r150500;
        double r150502 = 1.0;
        double r150503 = r150502 - r150500;
        double r150504 = r150501 / r150503;
        return r150504;
}

double f(double x, double y) {
        double r150505 = x;
        double r150506 = y;
        double r150507 = r150505 - r150506;
        double r150508 = 1.0;
        double r150509 = r150508 - r150506;
        double r150510 = r150507 / r150509;
        return r150510;
}

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