Average Error: 0.0 → 0.0
Time: 731.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 r170735 = x;
        double r170736 = y;
        double r170737 = r170735 + r170736;
        double r170738 = 1.0;
        double r170739 = r170736 + r170738;
        double r170740 = r170737 / r170739;
        return r170740;
}

double f(double x, double y) {
        double r170741 = x;
        double r170742 = y;
        double r170743 = r170741 + r170742;
        double r170744 = 1.0;
        double r170745 = r170742 + r170744;
        double r170746 = r170743 / r170745;
        return r170746;
}

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)))