Average Error: 0.0 → 0.0
Time: 2.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 r1263 = x;
        double r1264 = y;
        double r1265 = r1263 + r1264;
        double r1266 = 1.0;
        double r1267 = r1264 + r1266;
        double r1268 = r1265 / r1267;
        return r1268;
}

double f(double x, double y) {
        double r1269 = x;
        double r1270 = y;
        double r1271 = r1269 + r1270;
        double r1272 = 1.0;
        double r1273 = r1270 + r1272;
        double r1274 = r1271 / r1273;
        return r1274;
}

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