Average Error: 0.0 → 0.0
Time: 1.7s
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 r256930 = x;
        double r256931 = y;
        double r256932 = r256930 + r256931;
        double r256933 = 1.0;
        double r256934 = r256931 + r256933;
        double r256935 = r256932 / r256934;
        return r256935;
}

double f(double x, double y) {
        double r256936 = x;
        double r256937 = y;
        double r256938 = r256936 + r256937;
        double r256939 = 1.0;
        double r256940 = r256937 + r256939;
        double r256941 = r256938 / r256940;
        return r256941;
}

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