Average Error: 0.0 → 0.0
Time: 8.1s
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 r188338 = x;
        double r188339 = y;
        double r188340 = r188338 + r188339;
        double r188341 = 1.0;
        double r188342 = r188339 + r188341;
        double r188343 = r188340 / r188342;
        return r188343;
}

double f(double x, double y) {
        double r188344 = x;
        double r188345 = y;
        double r188346 = r188344 + r188345;
        double r188347 = 1.0;
        double r188348 = r188345 + r188347;
        double r188349 = r188346 / r188348;
        return r188349;
}

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