Average Error: 0.0 → 0.0
Time: 7.0s
Precision: 64
\[\frac{x + y}{y + 1}\]
\[\frac{x + y}{y + 1}\]
\frac{x + y}{y + 1}
\frac{x + y}{y + 1}
double f(double x, double y) {
        double r191419 = x;
        double r191420 = y;
        double r191421 = r191419 + r191420;
        double r191422 = 1.0;
        double r191423 = r191420 + r191422;
        double r191424 = r191421 / r191423;
        return r191424;
}

double f(double x, double y) {
        double r191425 = x;
        double r191426 = y;
        double r191427 = r191425 + r191426;
        double r191428 = 1.0;
        double r191429 = r191426 + r191428;
        double r191430 = r191427 / r191429;
        return r191430;
}

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}{y + 1}\]
  2. Final simplification0.0

    \[\leadsto \frac{x + y}{y + 1}\]

Reproduce

herbie shell --seed 2019326 
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  :precision binary64
  (/ (+ x y) (+ y 1)))