Average Error: 0.0 → 0.0
Time: 9.0s
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 r162524 = x;
        double r162525 = y;
        double r162526 = r162524 + r162525;
        double r162527 = 1.0;
        double r162528 = r162525 + r162527;
        double r162529 = r162526 / r162528;
        return r162529;
}

double f(double x, double y) {
        double r162530 = x;
        double r162531 = y;
        double r162532 = r162530 + r162531;
        double r162533 = 1.0;
        double r162534 = r162531 + r162533;
        double r162535 = r162532 / r162534;
        return r162535;
}

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