Average Error: 0.0 → 0.0
Time: 4.5s
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 r135771 = x;
        double r135772 = y;
        double r135773 = r135771 - r135772;
        double r135774 = 1.0;
        double r135775 = r135774 - r135772;
        double r135776 = r135773 / r135775;
        return r135776;
}

double f(double x, double y) {
        double r135777 = x;
        double r135778 = y;
        double r135779 = r135777 - r135778;
        double r135780 = 1.0;
        double r135781 = r135780 - r135778;
        double r135782 = r135779 / r135781;
        return r135782;
}

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