Average Error: 0.0 → 0.0
Time: 6.9s
Precision: 64
\[\frac{x - y}{1 - y}\]
\[\frac{x}{1 - y} - \frac{y}{1 - y}\]
\frac{x - y}{1 - y}
\frac{x}{1 - y} - \frac{y}{1 - y}
double f(double x, double y) {
        double r10146724 = x;
        double r10146725 = y;
        double r10146726 = r10146724 - r10146725;
        double r10146727 = 1.0;
        double r10146728 = r10146727 - r10146725;
        double r10146729 = r10146726 / r10146728;
        return r10146729;
}

double f(double x, double y) {
        double r10146730 = x;
        double r10146731 = 1.0;
        double r10146732 = y;
        double r10146733 = r10146731 - r10146732;
        double r10146734 = r10146730 / r10146733;
        double r10146735 = r10146732 / r10146733;
        double r10146736 = r10146734 - r10146735;
        return r10146736;
}

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. Using strategy rm
  3. Applied div-sub0.0

    \[\leadsto \color{blue}{\frac{x}{1 - y} - \frac{y}{1 - y}}\]
  4. Final simplification0.0

    \[\leadsto \frac{x}{1 - y} - \frac{y}{1 - y}\]

Reproduce

herbie shell --seed 2019170 
(FPCore (x y)
  :name "Diagrams.Trail:splitAtParam  from diagrams-lib-1.3.0.3, C"
  (/ (- x y) (- 1.0 y)))