Average Error: 0.0 → 0.0
Time: 5.5s
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 r378030 = x;
        double r378031 = y;
        double r378032 = r378030 + r378031;
        double r378033 = 1.0;
        double r378034 = r378031 + r378033;
        double r378035 = r378032 / r378034;
        return r378035;
}

double f(double x, double y) {
        double r378036 = x;
        double r378037 = y;
        double r378038 = r378036 + r378037;
        double r378039 = 1.0;
        double r378040 = r378037 + r378039;
        double r378041 = r378038 / r378040;
        return r378041;
}

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