Average Error: 0.0 → 0.0
Time: 4.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 r210301 = x;
        double r210302 = y;
        double r210303 = r210301 + r210302;
        double r210304 = 1.0;
        double r210305 = r210302 + r210304;
        double r210306 = r210303 / r210305;
        return r210306;
}

double f(double x, double y) {
        double r210307 = x;
        double r210308 = y;
        double r210309 = r210307 + r210308;
        double r210310 = 1.0;
        double r210311 = r210308 + r210310;
        double r210312 = r210309 / r210311;
        return r210312;
}

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