Average Error: 0.0 → 0.0
Time: 10.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 r8725520 = x;
        double r8725521 = y;
        double r8725522 = r8725520 + r8725521;
        double r8725523 = 1.0;
        double r8725524 = r8725521 + r8725523;
        double r8725525 = r8725522 / r8725524;
        return r8725525;
}

double f(double x, double y) {
        double r8725526 = y;
        double r8725527 = x;
        double r8725528 = r8725526 + r8725527;
        double r8725529 = 1.0;
        double r8725530 = r8725526 + r8725529;
        double r8725531 = r8725528 / r8725530;
        return r8725531;
}

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