Average Error: 0.0 → 0.0
Time: 5.1s
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 r172455 = x;
        double r172456 = y;
        double r172457 = r172455 + r172456;
        double r172458 = 1.0;
        double r172459 = r172456 + r172458;
        double r172460 = r172457 / r172459;
        return r172460;
}

double f(double x, double y) {
        double r172461 = x;
        double r172462 = y;
        double r172463 = r172461 + r172462;
        double r172464 = 1.0;
        double r172465 = r172462 + r172464;
        double r172466 = r172463 / r172465;
        return r172466;
}

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