Average Error: 0.0 → 0.0
Time: 2.5s
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 r1046 = x;
        double r1047 = y;
        double r1048 = r1046 + r1047;
        double r1049 = 1.0;
        double r1050 = r1047 + r1049;
        double r1051 = r1048 / r1050;
        return r1051;
}

double f(double x, double y) {
        double r1052 = x;
        double r1053 = y;
        double r1054 = r1052 + r1053;
        double r1055 = 1.0;
        double r1056 = r1053 + r1055;
        double r1057 = r1054 / r1056;
        return r1057;
}

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