Average Error: 0.0 → 0.0
Time: 4.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 r3032305 = x;
        double r3032306 = y;
        double r3032307 = r3032305 - r3032306;
        double r3032308 = 1.0;
        double r3032309 = r3032308 - r3032306;
        double r3032310 = r3032307 / r3032309;
        return r3032310;
}

double f(double x, double y) {
        double r3032311 = x;
        double r3032312 = y;
        double r3032313 = r3032311 - r3032312;
        double r3032314 = 1.0;
        double r3032315 = r3032314 - r3032312;
        double r3032316 = r3032313 / r3032315;
        return r3032316;
}

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