Average Error: 0.0 → 0.0
Time: 7.0s
Precision: 64
\[\frac{x + y}{y + 1}\]
\[\frac{y + x}{y + 1}\]
\frac{x + y}{y + 1}
\frac{y + x}{y + 1}
double f(double x, double y) {
        double r8417506 = x;
        double r8417507 = y;
        double r8417508 = r8417506 + r8417507;
        double r8417509 = 1.0;
        double r8417510 = r8417507 + r8417509;
        double r8417511 = r8417508 / r8417510;
        return r8417511;
}

double f(double x, double y) {
        double r8417512 = y;
        double r8417513 = x;
        double r8417514 = r8417512 + r8417513;
        double r8417515 = 1.0;
        double r8417516 = r8417512 + r8417515;
        double r8417517 = r8417514 / r8417516;
        return r8417517;
}

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{y + x}{y + 1}\]

Reproduce

herbie shell --seed 2019172 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  (/ (+ x y) (+ y 1.0)))