Average Error: 0.0 → 0.0
Time: 4.8s
Precision: 64
\[\frac{x + y}{y + 1.0}\]
\[\frac{y + x}{y + 1.0}\]
\frac{x + y}{y + 1.0}
\frac{y + x}{y + 1.0}
double f(double x, double y) {
        double r9194062 = x;
        double r9194063 = y;
        double r9194064 = r9194062 + r9194063;
        double r9194065 = 1.0;
        double r9194066 = r9194063 + r9194065;
        double r9194067 = r9194064 / r9194066;
        return r9194067;
}

double f(double x, double y) {
        double r9194068 = y;
        double r9194069 = x;
        double r9194070 = r9194068 + r9194069;
        double r9194071 = 1.0;
        double r9194072 = r9194068 + r9194071;
        double r9194073 = r9194070 / r9194072;
        return r9194073;
}

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.0}\]
  2. Final simplification0.0

    \[\leadsto \frac{y + x}{y + 1.0}\]

Reproduce

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