Average Error: 0.0 → 0.0
Time: 7.2s
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 r10385711 = x;
        double r10385712 = y;
        double r10385713 = r10385711 + r10385712;
        double r10385714 = 1.0;
        double r10385715 = r10385712 + r10385714;
        double r10385716 = r10385713 / r10385715;
        return r10385716;
}

double f(double x, double y) {
        double r10385717 = y;
        double r10385718 = x;
        double r10385719 = r10385717 + r10385718;
        double r10385720 = 1.0;
        double r10385721 = r10385717 + r10385720;
        double r10385722 = r10385719 / r10385721;
        return r10385722;
}

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