Average Error: 0.0 → 0.0
Time: 2.4s
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 r243052 = x;
        double r243053 = y;
        double r243054 = r243052 + r243053;
        double r243055 = 1.0;
        double r243056 = r243053 + r243055;
        double r243057 = r243054 / r243056;
        return r243057;
}

double f(double x, double y) {
        double r243058 = x;
        double r243059 = y;
        double r243060 = r243058 + r243059;
        double r243061 = 1.0;
        double r243062 = r243059 + r243061;
        double r243063 = r243060 / r243062;
        return r243063;
}

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