Average Error: 0.0 → 0.0
Time: 5.0s
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 r164515 = x;
        double r164516 = y;
        double r164517 = r164515 + r164516;
        double r164518 = 1.0;
        double r164519 = r164516 + r164518;
        double r164520 = r164517 / r164519;
        return r164520;
}

double f(double x, double y) {
        double r164521 = x;
        double r164522 = y;
        double r164523 = r164521 + r164522;
        double r164524 = 1.0;
        double r164525 = r164522 + r164524;
        double r164526 = r164523 / r164525;
        return r164526;
}

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