Average Error: 0.0 → 0.0
Time: 9.6s
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 r171676 = x;
        double r171677 = y;
        double r171678 = r171676 + r171677;
        double r171679 = 1.0;
        double r171680 = r171677 + r171679;
        double r171681 = r171678 / r171680;
        return r171681;
}

double f(double x, double y) {
        double r171682 = x;
        double r171683 = y;
        double r171684 = r171682 + r171683;
        double r171685 = 1.0;
        double r171686 = r171683 + r171685;
        double r171687 = r171684 / r171686;
        return r171687;
}

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