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 r10124932 = x;
        double r10124933 = y;
        double r10124934 = r10124932 - r10124933;
        double r10124935 = 1.0;
        double r10124936 = r10124935 - r10124933;
        double r10124937 = r10124934 / r10124936;
        return r10124937;
}

double f(double x, double y) {
        double r10124938 = x;
        double r10124939 = y;
        double r10124940 = r10124938 - r10124939;
        double r10124941 = 1.0;
        double r10124942 = r10124941 - r10124939;
        double r10124943 = r10124940 / r10124942;
        return r10124943;
}

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)))