Average Error: 0.0 → 0.0
Time: 13.3s
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 r28413785 = x;
        double r28413786 = y;
        double r28413787 = r28413785 + r28413786;
        double r28413788 = 1.0;
        double r28413789 = r28413786 + r28413788;
        double r28413790 = r28413787 / r28413789;
        return r28413790;
}

double f(double x, double y) {
        double r28413791 = x;
        double r28413792 = y;
        double r28413793 = r28413791 + r28413792;
        double r28413794 = 1.0;
        double r28413795 = r28413792 + r28413794;
        double r28413796 = r28413793 / r28413795;
        return r28413796;
}

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