Average Error: 0.0 → 0.0
Time: 1.6s
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 r339904 = x;
        double r339905 = y;
        double r339906 = r339904 + r339905;
        double r339907 = 1.0;
        double r339908 = r339905 + r339907;
        double r339909 = r339906 / r339908;
        return r339909;
}

double f(double x, double y) {
        double r339910 = x;
        double r339911 = y;
        double r339912 = r339910 + r339911;
        double r339913 = 1.0;
        double r339914 = r339911 + r339913;
        double r339915 = r339912 / r339914;
        return r339915;
}

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