Average Error: 0.0 → 0.0
Time: 4.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 r190480 = x;
        double r190481 = y;
        double r190482 = r190480 + r190481;
        double r190483 = 1.0;
        double r190484 = r190481 + r190483;
        double r190485 = r190482 / r190484;
        return r190485;
}

double f(double x, double y) {
        double r190486 = x;
        double r190487 = y;
        double r190488 = r190486 + r190487;
        double r190489 = 1.0;
        double r190490 = r190487 + r190489;
        double r190491 = r190488 / r190490;
        return r190491;
}

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