Average Error: 0.0 → 0.0
Time: 3.7s
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 r201367 = x;
        double r201368 = y;
        double r201369 = r201367 + r201368;
        double r201370 = 1.0;
        double r201371 = r201368 + r201370;
        double r201372 = r201369 / r201371;
        return r201372;
}

double f(double x, double y) {
        double r201373 = x;
        double r201374 = y;
        double r201375 = r201373 + r201374;
        double r201376 = 1.0;
        double r201377 = r201374 + r201376;
        double r201378 = r201375 / r201377;
        return r201378;
}

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