Average Error: 0.0 → 0.0
Time: 844.0ms
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 r191905 = x;
        double r191906 = y;
        double r191907 = r191905 + r191906;
        double r191908 = 1.0;
        double r191909 = r191906 + r191908;
        double r191910 = r191907 / r191909;
        return r191910;
}

double f(double x, double y) {
        double r191911 = x;
        double r191912 = y;
        double r191913 = r191911 + r191912;
        double r191914 = 1.0;
        double r191915 = r191912 + r191914;
        double r191916 = r191913 / r191915;
        return r191916;
}

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