Average Error: 0.0 → 0.0
Time: 1.3s
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 r284375 = x;
        double r284376 = y;
        double r284377 = r284375 + r284376;
        double r284378 = 1.0;
        double r284379 = r284376 + r284378;
        double r284380 = r284377 / r284379;
        return r284380;
}

double f(double x, double y) {
        double r284381 = x;
        double r284382 = y;
        double r284383 = r284381 + r284382;
        double r284384 = 1.0;
        double r284385 = r284382 + r284384;
        double r284386 = r284383 / r284385;
        return r284386;
}

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