Average Error: 0.0 → 0.0
Time: 10.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 r153031 = x;
        double r153032 = y;
        double r153033 = r153031 + r153032;
        double r153034 = 1.0;
        double r153035 = r153032 + r153034;
        double r153036 = r153033 / r153035;
        return r153036;
}

double f(double x, double y) {
        double r153037 = x;
        double r153038 = y;
        double r153039 = r153037 + r153038;
        double r153040 = 1.0;
        double r153041 = r153038 + r153040;
        double r153042 = r153039 / r153041;
        return r153042;
}

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