Average Error: 0.0 → 0.0
Time: 15.8s
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 r9306958 = x;
        double r9306959 = y;
        double r9306960 = r9306958 - r9306959;
        double r9306961 = 1.0;
        double r9306962 = r9306961 - r9306959;
        double r9306963 = r9306960 / r9306962;
        return r9306963;
}

double f(double x, double y) {
        double r9306964 = x;
        double r9306965 = y;
        double r9306966 = r9306964 - r9306965;
        double r9306967 = 1.0;
        double r9306968 = r9306967 - r9306965;
        double r9306969 = r9306966 / r9306968;
        return r9306969;
}

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