Average Error: 0.0 → 0.0
Time: 1.2s
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 r231363 = x;
        double r231364 = y;
        double r231365 = r231363 + r231364;
        double r231366 = 1.0;
        double r231367 = r231364 + r231366;
        double r231368 = r231365 / r231367;
        return r231368;
}

double f(double x, double y) {
        double r231369 = x;
        double r231370 = y;
        double r231371 = r231369 + r231370;
        double r231372 = 1.0;
        double r231373 = r231370 + r231372;
        double r231374 = r231371 / r231373;
        return r231374;
}

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