Average Error: 0.0 → 0.0
Time: 10.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 r151954 = x;
        double r151955 = y;
        double r151956 = r151954 + r151955;
        double r151957 = 1.0;
        double r151958 = r151955 + r151957;
        double r151959 = r151956 / r151958;
        return r151959;
}

double f(double x, double y) {
        double r151960 = x;
        double r151961 = y;
        double r151962 = r151960 + r151961;
        double r151963 = 1.0;
        double r151964 = r151961 + r151963;
        double r151965 = r151962 / r151964;
        return r151965;
}

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)))