Average Error: 0.0 → 0.0
Time: 8.9s
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 r162880 = x;
        double r162881 = y;
        double r162882 = r162880 + r162881;
        double r162883 = 1.0;
        double r162884 = r162881 + r162883;
        double r162885 = r162882 / r162884;
        return r162885;
}

double f(double x, double y) {
        double r162886 = x;
        double r162887 = y;
        double r162888 = r162886 + r162887;
        double r162889 = 1.0;
        double r162890 = r162887 + r162889;
        double r162891 = r162888 / r162890;
        return r162891;
}

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