Average Error: 0.0 → 0.0
Time: 6.6s
Precision: 64
\[\frac{x - y}{1.0 - y}\]
\[\frac{x - y}{1.0 - y}\]
\frac{x - y}{1.0 - y}
\frac{x - y}{1.0 - y}
double f(double x, double y) {
        double r8636480 = x;
        double r8636481 = y;
        double r8636482 = r8636480 - r8636481;
        double r8636483 = 1.0;
        double r8636484 = r8636483 - r8636481;
        double r8636485 = r8636482 / r8636484;
        return r8636485;
}

double f(double x, double y) {
        double r8636486 = x;
        double r8636487 = y;
        double r8636488 = r8636486 - r8636487;
        double r8636489 = 1.0;
        double r8636490 = r8636489 - r8636487;
        double r8636491 = r8636488 / r8636490;
        return r8636491;
}

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.0 - y}\]
  2. Final simplification0.0

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

Reproduce

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