Average Error: 0.0 → 0.0
Time: 17.4s
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 r7756086 = x;
        double r7756087 = y;
        double r7756088 = r7756086 - r7756087;
        double r7756089 = 1.0;
        double r7756090 = r7756089 - r7756087;
        double r7756091 = r7756088 / r7756090;
        return r7756091;
}

double f(double x, double y) {
        double r7756092 = x;
        double r7756093 = y;
        double r7756094 = r7756092 - r7756093;
        double r7756095 = 1.0;
        double r7756096 = r7756095 - r7756093;
        double r7756097 = r7756094 / r7756096;
        return r7756097;
}

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