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 r295898 = x;
        double r295899 = y;
        double r295900 = r295898 + r295899;
        double r295901 = 1.0;
        double r295902 = r295899 + r295901;
        double r295903 = r295900 / r295902;
        return r295903;
}

double f(double x, double y) {
        double r295904 = x;
        double r295905 = y;
        double r295906 = r295904 + r295905;
        double r295907 = 1.0;
        double r295908 = r295905 + r295907;
        double r295909 = r295906 / r295908;
        return r295909;
}

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