Average Error: 0.0 → 0.0
Time: 1.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 r307311 = x;
        double r307312 = y;
        double r307313 = r307311 + r307312;
        double r307314 = 1.0;
        double r307315 = r307312 + r307314;
        double r307316 = r307313 / r307315;
        return r307316;
}

double f(double x, double y) {
        double r307317 = x;
        double r307318 = y;
        double r307319 = r307317 + r307318;
        double r307320 = 1.0;
        double r307321 = r307318 + r307320;
        double r307322 = r307319 / r307321;
        return r307322;
}

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