Average Error: 0.0 → 0.0
Time: 1.4s
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 r260930 = x;
        double r260931 = y;
        double r260932 = r260930 + r260931;
        double r260933 = 1.0;
        double r260934 = r260931 + r260933;
        double r260935 = r260932 / r260934;
        return r260935;
}

double f(double x, double y) {
        double r260936 = x;
        double r260937 = y;
        double r260938 = r260936 + r260937;
        double r260939 = 1.0;
        double r260940 = r260937 + r260939;
        double r260941 = r260938 / r260940;
        return r260941;
}

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