Average Error: 0.0 → 0.0
Time: 2.1s
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 r302213 = x;
        double r302214 = y;
        double r302215 = r302213 + r302214;
        double r302216 = 1.0;
        double r302217 = r302214 + r302216;
        double r302218 = r302215 / r302217;
        return r302218;
}

double f(double x, double y) {
        double r302219 = x;
        double r302220 = y;
        double r302221 = r302219 + r302220;
        double r302222 = 1.0;
        double r302223 = r302220 + r302222;
        double r302224 = r302221 / r302223;
        return r302224;
}

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