Average Error: 0.0 → 0.0
Time: 8.0s
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 r177606 = x;
        double r177607 = y;
        double r177608 = r177606 + r177607;
        double r177609 = 1.0;
        double r177610 = r177607 + r177609;
        double r177611 = r177608 / r177610;
        return r177611;
}

double f(double x, double y) {
        double r177612 = x;
        double r177613 = y;
        double r177614 = r177612 + r177613;
        double r177615 = 1.0;
        double r177616 = r177613 + r177615;
        double r177617 = r177614 / r177616;
        return r177617;
}

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