Average Error: 0.0 → 0.0
Time: 10.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 r170871 = x;
        double r170872 = y;
        double r170873 = r170871 + r170872;
        double r170874 = 1.0;
        double r170875 = r170872 + r170874;
        double r170876 = r170873 / r170875;
        return r170876;
}

double f(double x, double y) {
        double r170877 = x;
        double r170878 = y;
        double r170879 = r170877 + r170878;
        double r170880 = 1.0;
        double r170881 = r170878 + r170880;
        double r170882 = r170879 / r170881;
        return r170882;
}

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