Average Error: 0.0 → 0.0
Time: 940.0ms
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 r267582 = x;
        double r267583 = y;
        double r267584 = r267582 + r267583;
        double r267585 = 1.0;
        double r267586 = r267583 + r267585;
        double r267587 = r267584 / r267586;
        return r267587;
}

double f(double x, double y) {
        double r267588 = x;
        double r267589 = y;
        double r267590 = r267588 + r267589;
        double r267591 = 1.0;
        double r267592 = r267589 + r267591;
        double r267593 = r267590 / r267592;
        return r267593;
}

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