Average Error: 0.0 → 0.0
Time: 9.3s
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 r286083 = x;
        double r286084 = y;
        double r286085 = r286083 + r286084;
        double r286086 = 1.0;
        double r286087 = r286084 + r286086;
        double r286088 = r286085 / r286087;
        return r286088;
}

double f(double x, double y) {
        double r286089 = x;
        double r286090 = y;
        double r286091 = r286089 + r286090;
        double r286092 = 1.0;
        double r286093 = r286090 + r286092;
        double r286094 = r286091 / r286093;
        return r286094;
}

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