Average Error: 0.0 → 0.0
Time: 9.1s
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 r178199 = x;
        double r178200 = y;
        double r178201 = r178199 + r178200;
        double r178202 = 1.0;
        double r178203 = r178200 + r178202;
        double r178204 = r178201 / r178203;
        return r178204;
}

double f(double x, double y) {
        double r178205 = x;
        double r178206 = y;
        double r178207 = r178205 + r178206;
        double r178208 = 1.0;
        double r178209 = r178206 + r178208;
        double r178210 = r178207 / r178209;
        return r178210;
}

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 2019322 
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  :precision binary64
  (/ (+ x y) (+ y 1)))