Average Error: 0.0 → 0.0
Time: 4.3s
Precision: 64
\[\frac{x + y}{y + 1}\]
\[\frac{x + y}{y + 1}\]
\frac{x + y}{y + 1}
\frac{x + y}{y + 1}
double f(double x, double y) {
        double r259206 = x;
        double r259207 = y;
        double r259208 = r259206 + r259207;
        double r259209 = 1.0;
        double r259210 = r259207 + r259209;
        double r259211 = r259208 / r259210;
        return r259211;
}

double f(double x, double y) {
        double r259212 = x;
        double r259213 = y;
        double r259214 = r259212 + r259213;
        double r259215 = 1.0;
        double r259216 = r259213 + r259215;
        double r259217 = r259214 / r259216;
        return r259217;
}

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

Reproduce

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