Average Error: 0.0 → 0.0
Time: 693.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 r167742 = x;
        double r167743 = y;
        double r167744 = r167742 + r167743;
        double r167745 = 1.0;
        double r167746 = r167743 + r167745;
        double r167747 = r167744 / r167746;
        return r167747;
}

double f(double x, double y) {
        double r167748 = x;
        double r167749 = y;
        double r167750 = r167748 + r167749;
        double r167751 = 1.0;
        double r167752 = r167749 + r167751;
        double r167753 = r167750 / r167752;
        return r167753;
}

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