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 r263383 = x;
        double r263384 = y;
        double r263385 = r263383 + r263384;
        double r263386 = 1.0;
        double r263387 = r263384 + r263386;
        double r263388 = r263385 / r263387;
        return r263388;
}

double f(double x, double y) {
        double r263389 = x;
        double r263390 = y;
        double r263391 = r263389 + r263390;
        double r263392 = 1.0;
        double r263393 = r263390 + r263392;
        double r263394 = r263391 / r263393;
        return r263394;
}

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