Average Error: 0.0 → 0.0
Time: 2.9s
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 r223439 = x;
        double r223440 = y;
        double r223441 = r223439 + r223440;
        double r223442 = 1.0;
        double r223443 = r223440 + r223442;
        double r223444 = r223441 / r223443;
        return r223444;
}

double f(double x, double y) {
        double r223445 = x;
        double r223446 = y;
        double r223447 = r223445 + r223446;
        double r223448 = 1.0;
        double r223449 = r223446 + r223448;
        double r223450 = r223447 / r223449;
        return r223450;
}

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