Average Error: 0.0 → 0.0
Time: 17.4s
Precision: 64
\[\frac{x + y}{y + 1}\]
\[\frac{x + y}{1 + y}\]
\frac{x + y}{y + 1}
\frac{x + y}{1 + y}
double f(double x, double y) {
        double r13071682 = x;
        double r13071683 = y;
        double r13071684 = r13071682 + r13071683;
        double r13071685 = 1.0;
        double r13071686 = r13071683 + r13071685;
        double r13071687 = r13071684 / r13071686;
        return r13071687;
}

double f(double x, double y) {
        double r13071688 = x;
        double r13071689 = y;
        double r13071690 = r13071688 + r13071689;
        double r13071691 = 1.0;
        double r13071692 = r13071691 + r13071689;
        double r13071693 = r13071690 / r13071692;
        return r13071693;
}

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}{1 + y}\]

Reproduce

herbie shell --seed 2019200 
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  (/ (+ x y) (+ y 1.0)))