Average Error: 0.0 → 0.0
Time: 5.8s
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 r214284 = x;
        double r214285 = y;
        double r214286 = r214284 + r214285;
        double r214287 = 1.0;
        double r214288 = r214285 + r214287;
        double r214289 = r214286 / r214288;
        return r214289;
}

double f(double x, double y) {
        double r214290 = x;
        double r214291 = y;
        double r214292 = r214290 + r214291;
        double r214293 = 1.0;
        double r214294 = r214291 + r214293;
        double r214295 = r214292 / r214294;
        return r214295;
}

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