Average Error: 0.0 → 0.0
Time: 2.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 r215907 = x;
        double r215908 = y;
        double r215909 = r215907 + r215908;
        double r215910 = 1.0;
        double r215911 = r215908 + r215910;
        double r215912 = r215909 / r215911;
        return r215912;
}

double f(double x, double y) {
        double r215913 = x;
        double r215914 = y;
        double r215915 = r215913 + r215914;
        double r215916 = 1.0;
        double r215917 = r215914 + r215916;
        double r215918 = r215915 / r215917;
        return r215918;
}

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