Average Error: 0.0 → 0.0
Time: 2.4s
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 r236508 = x;
        double r236509 = y;
        double r236510 = r236508 + r236509;
        double r236511 = 1.0;
        double r236512 = r236509 + r236511;
        double r236513 = r236510 / r236512;
        return r236513;
}

double f(double x, double y) {
        double r236514 = x;
        double r236515 = y;
        double r236516 = r236514 + r236515;
        double r236517 = 1.0;
        double r236518 = r236515 + r236517;
        double r236519 = r236516 / r236518;
        return r236519;
}

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