Average Error: 0.0 → 0.0
Time: 6.6s
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 r243212 = x;
        double r243213 = y;
        double r243214 = r243212 + r243213;
        double r243215 = 1.0;
        double r243216 = r243213 + r243215;
        double r243217 = r243214 / r243216;
        return r243217;
}

double f(double x, double y) {
        double r243218 = x;
        double r243219 = y;
        double r243220 = r243218 + r243219;
        double r243221 = 1.0;
        double r243222 = r243219 + r243221;
        double r243223 = r243220 / r243222;
        return r243223;
}

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