Average Error: 0.0 → 0.0
Time: 9.5s
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 r163522 = x;
        double r163523 = y;
        double r163524 = r163522 + r163523;
        double r163525 = 1.0;
        double r163526 = r163523 + r163525;
        double r163527 = r163524 / r163526;
        return r163527;
}

double f(double x, double y) {
        double r163528 = x;
        double r163529 = y;
        double r163530 = r163528 + r163529;
        double r163531 = 1.0;
        double r163532 = r163529 + r163531;
        double r163533 = r163530 / r163532;
        return r163533;
}

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