Average Error: 0.0 → 0.0
Time: 16.9s
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 r7936087 = x;
        double r7936088 = y;
        double r7936089 = r7936087 - r7936088;
        double r7936090 = 1.0;
        double r7936091 = r7936090 - r7936088;
        double r7936092 = r7936089 / r7936091;
        return r7936092;
}

double f(double x, double y) {
        double r7936093 = x;
        double r7936094 = y;
        double r7936095 = r7936093 - r7936094;
        double r7936096 = 1.0;
        double r7936097 = r7936096 - r7936094;
        double r7936098 = r7936095 / r7936097;
        return r7936098;
}

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