Average Error: 0.0 → 0.0
Time: 5.9s
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 r221813 = x;
        double r221814 = y;
        double r221815 = r221813 + r221814;
        double r221816 = 1.0;
        double r221817 = r221814 + r221816;
        double r221818 = r221815 / r221817;
        return r221818;
}

double f(double x, double y) {
        double r221819 = x;
        double r221820 = y;
        double r221821 = r221819 + r221820;
        double r221822 = 1.0;
        double r221823 = r221820 + r221822;
        double r221824 = r221821 / r221823;
        return r221824;
}

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