Average Error: 0.0 → 0.0
Time: 824.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 r197398 = x;
        double r197399 = y;
        double r197400 = r197398 + r197399;
        double r197401 = 1.0;
        double r197402 = r197399 + r197401;
        double r197403 = r197400 / r197402;
        return r197403;
}

double f(double x, double y) {
        double r197404 = x;
        double r197405 = y;
        double r197406 = r197404 + r197405;
        double r197407 = 1.0;
        double r197408 = r197405 + r197407;
        double r197409 = r197406 / r197408;
        return r197409;
}

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