Average Error: 0.0 → 0.0
Time: 19.2s
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 r9953503 = x;
        double r9953504 = y;
        double r9953505 = r9953503 - r9953504;
        double r9953506 = 1.0;
        double r9953507 = r9953506 - r9953504;
        double r9953508 = r9953505 / r9953507;
        return r9953508;
}

double f(double x, double y) {
        double r9953509 = x;
        double r9953510 = 1.0;
        double r9953511 = y;
        double r9953512 = r9953510 - r9953511;
        double r9953513 = r9953509 / r9953512;
        double r9953514 = r9953511 / r9953512;
        double r9953515 = r9953513 - r9953514;
        return r9953515;
}

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