Average Error: 0.0 → 0.0
Time: 6.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 r190160 = x;
        double r190161 = y;
        double r190162 = r190160 + r190161;
        double r190163 = 1.0;
        double r190164 = r190161 + r190163;
        double r190165 = r190162 / r190164;
        return r190165;
}

double f(double x, double y) {
        double r190166 = x;
        double r190167 = y;
        double r190168 = r190166 + r190167;
        double r190169 = 1.0;
        double r190170 = r190167 + r190169;
        double r190171 = r190168 / r190170;
        return r190171;
}

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