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 r283172 = x;
        double r283173 = y;
        double r283174 = r283172 + r283173;
        double r283175 = 1.0;
        double r283176 = r283173 + r283175;
        double r283177 = r283174 / r283176;
        return r283177;
}

double f(double x, double y) {
        double r283178 = x;
        double r283179 = y;
        double r283180 = r283178 + r283179;
        double r283181 = 1.0;
        double r283182 = r283179 + r283181;
        double r283183 = r283180 / r283182;
        return r283183;
}

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)))