Average Error: 0.0 → 0.0
Time: 1.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 r334397 = x;
        double r334398 = y;
        double r334399 = r334397 + r334398;
        double r334400 = 1.0;
        double r334401 = r334398 + r334400;
        double r334402 = r334399 / r334401;
        return r334402;
}

double f(double x, double y) {
        double r334403 = x;
        double r334404 = y;
        double r334405 = r334403 + r334404;
        double r334406 = 1.0;
        double r334407 = r334404 + r334406;
        double r334408 = r334405 / r334407;
        return r334408;
}

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