Average Error: 0.0 → 0.0
Time: 4.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 r15388506 = x;
        double r15388507 = y;
        double r15388508 = r15388506 + r15388507;
        double r15388509 = 1.0;
        double r15388510 = r15388507 + r15388509;
        double r15388511 = r15388508 / r15388510;
        return r15388511;
}

double f(double x, double y) {
        double r15388512 = x;
        double r15388513 = y;
        double r15388514 = r15388512 + r15388513;
        double r15388515 = 1.0;
        double r15388516 = r15388513 + r15388515;
        double r15388517 = r15388514 / r15388516;
        return r15388517;
}

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