Average Error: 0.0 → 0.0
Time: 1.7s
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 r241398 = x;
        double r241399 = y;
        double r241400 = r241398 + r241399;
        double r241401 = 1.0;
        double r241402 = r241399 + r241401;
        double r241403 = r241400 / r241402;
        return r241403;
}

double f(double x, double y) {
        double r241404 = x;
        double r241405 = y;
        double r241406 = r241404 + r241405;
        double r241407 = 1.0;
        double r241408 = r241405 + r241407;
        double r241409 = r241406 / r241408;
        return r241409;
}

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