Average Error: 0.0 → 0.0
Time: 979.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 r257081 = x;
        double r257082 = y;
        double r257083 = r257081 + r257082;
        double r257084 = 1.0;
        double r257085 = r257082 + r257084;
        double r257086 = r257083 / r257085;
        return r257086;
}

double f(double x, double y) {
        double r257087 = x;
        double r257088 = y;
        double r257089 = r257087 + r257088;
        double r257090 = 1.0;
        double r257091 = r257088 + r257090;
        double r257092 = r257089 / r257091;
        return r257092;
}

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