Average Error: 0.0 → 0.0
Time: 1.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 r308238 = x;
        double r308239 = y;
        double r308240 = r308238 + r308239;
        double r308241 = 1.0;
        double r308242 = r308239 + r308241;
        double r308243 = r308240 / r308242;
        return r308243;
}

double f(double x, double y) {
        double r308244 = x;
        double r308245 = y;
        double r308246 = r308244 + r308245;
        double r308247 = 1.0;
        double r308248 = r308245 + r308247;
        double r308249 = r308246 / r308248;
        return r308249;
}

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