Average Error: 0.0 → 0.0
Time: 5.2s
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 r13700146 = x;
        double r13700147 = y;
        double r13700148 = r13700146 + r13700147;
        double r13700149 = 1.0;
        double r13700150 = r13700147 + r13700149;
        double r13700151 = r13700148 / r13700150;
        return r13700151;
}

double f(double x, double y) {
        double r13700152 = x;
        double r13700153 = y;
        double r13700154 = r13700152 + r13700153;
        double r13700155 = 1.0;
        double r13700156 = r13700153 + r13700155;
        double r13700157 = r13700154 / r13700156;
        return r13700157;
}

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