Average Error: 0.0 → 0.0
Time: 9.7s
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 r9609579 = x;
        double r9609580 = y;
        double r9609581 = r9609579 + r9609580;
        double r9609582 = 1.0;
        double r9609583 = r9609580 + r9609582;
        double r9609584 = r9609581 / r9609583;
        return r9609584;
}

double f(double x, double y) {
        double r9609585 = y;
        double r9609586 = x;
        double r9609587 = r9609585 + r9609586;
        double r9609588 = 1.0;
        double r9609589 = r9609585 + r9609588;
        double r9609590 = r9609587 / r9609589;
        return r9609590;
}

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)))