Average Error: 0.0 → 0.0
Time: 1.6s
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 r266423 = x;
        double r266424 = y;
        double r266425 = r266423 + r266424;
        double r266426 = 1.0;
        double r266427 = r266424 + r266426;
        double r266428 = r266425 / r266427;
        return r266428;
}

double f(double x, double y) {
        double r266429 = x;
        double r266430 = y;
        double r266431 = r266429 + r266430;
        double r266432 = 1.0;
        double r266433 = r266430 + r266432;
        double r266434 = r266431 / r266433;
        return r266434;
}

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