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 r211064 = x;
        double r211065 = y;
        double r211066 = r211064 + r211065;
        double r211067 = 1.0;
        double r211068 = r211065 + r211067;
        double r211069 = r211066 / r211068;
        return r211069;
}

double f(double x, double y) {
        double r211070 = x;
        double r211071 = y;
        double r211072 = r211070 + r211071;
        double r211073 = 1.0;
        double r211074 = r211071 + r211073;
        double r211075 = r211072 / r211074;
        return r211075;
}

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