Average Error: 0.0 → 0.0
Time: 8.1s
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 r162362 = x;
        double r162363 = y;
        double r162364 = r162362 + r162363;
        double r162365 = 1.0;
        double r162366 = r162363 + r162365;
        double r162367 = r162364 / r162366;
        return r162367;
}

double f(double x, double y) {
        double r162368 = x;
        double r162369 = y;
        double r162370 = r162368 + r162369;
        double r162371 = 1.0;
        double r162372 = r162369 + r162371;
        double r162373 = r162370 / r162372;
        return r162373;
}

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 2019294 
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  :precision binary64
  (/ (+ x y) (+ y 1)))