Average Error: 0.0 → 0.0
Time: 8.3s
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 r145972 = x;
        double r145973 = y;
        double r145974 = r145972 + r145973;
        double r145975 = 1.0;
        double r145976 = r145973 + r145975;
        double r145977 = r145974 / r145976;
        return r145977;
}

double f(double x, double y) {
        double r145978 = x;
        double r145979 = y;
        double r145980 = r145978 + r145979;
        double r145981 = 1.0;
        double r145982 = r145979 + r145981;
        double r145983 = r145980 / r145982;
        return r145983;
}

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