Average Error: 0.0 → 0.0
Time: 10.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 r152378 = x;
        double r152379 = y;
        double r152380 = r152378 + r152379;
        double r152381 = 1.0;
        double r152382 = r152379 + r152381;
        double r152383 = r152380 / r152382;
        return r152383;
}

double f(double x, double y) {
        double r152384 = x;
        double r152385 = y;
        double r152386 = r152384 + r152385;
        double r152387 = 1.0;
        double r152388 = r152385 + r152387;
        double r152389 = r152386 / r152388;
        return r152389;
}

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