Average Error: 0.0 → 0.0
Time: 1.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 r218106 = x;
        double r218107 = y;
        double r218108 = r218106 + r218107;
        double r218109 = 1.0;
        double r218110 = r218107 + r218109;
        double r218111 = r218108 / r218110;
        return r218111;
}

double f(double x, double y) {
        double r218112 = x;
        double r218113 = y;
        double r218114 = r218112 + r218113;
        double r218115 = 1.0;
        double r218116 = r218113 + r218115;
        double r218117 = r218114 / r218116;
        return r218117;
}

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