Average Error: 0.0 → 0.0
Time: 10.5s
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 r133459 = x;
        double r133460 = y;
        double r133461 = r133459 + r133460;
        double r133462 = 1.0;
        double r133463 = r133460 + r133462;
        double r133464 = r133461 / r133463;
        return r133464;
}

double f(double x, double y) {
        double r133465 = x;
        double r133466 = y;
        double r133467 = r133465 + r133466;
        double r133468 = 1.0;
        double r133469 = r133466 + r133468;
        double r133470 = r133467 / r133469;
        return r133470;
}

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