Average Error: 0.0 → 0.0
Time: 5.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 r304937 = x;
        double r304938 = y;
        double r304939 = r304937 + r304938;
        double r304940 = 1.0;
        double r304941 = r304938 + r304940;
        double r304942 = r304939 / r304941;
        return r304942;
}

double f(double x, double y) {
        double r304943 = x;
        double r304944 = y;
        double r304945 = r304943 + r304944;
        double r304946 = 1.0;
        double r304947 = r304944 + r304946;
        double r304948 = r304945 / r304947;
        return r304948;
}

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