Average Error: 0.0 → 0.0
Time: 600.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 r284895 = x;
        double r284896 = y;
        double r284897 = r284895 + r284896;
        double r284898 = 1.0;
        double r284899 = r284896 + r284898;
        double r284900 = r284897 / r284899;
        return r284900;
}

double f(double x, double y) {
        double r284901 = x;
        double r284902 = y;
        double r284903 = r284901 + r284902;
        double r284904 = 1.0;
        double r284905 = r284902 + r284904;
        double r284906 = r284903 / r284905;
        return r284906;
}

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