Average Error: 0.0 → 0.0
Time: 1.4s
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 r327418 = x;
        double r327419 = y;
        double r327420 = r327418 + r327419;
        double r327421 = 1.0;
        double r327422 = r327419 + r327421;
        double r327423 = r327420 / r327422;
        return r327423;
}

double f(double x, double y) {
        double r327424 = x;
        double r327425 = y;
        double r327426 = r327424 + r327425;
        double r327427 = 1.0;
        double r327428 = r327425 + r327427;
        double r327429 = r327426 / r327428;
        return r327429;
}

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