Average Error: 0.0 → 0.0
Time: 3.9s
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 r297963 = x;
        double r297964 = y;
        double r297965 = r297963 + r297964;
        double r297966 = 1.0;
        double r297967 = r297964 + r297966;
        double r297968 = r297965 / r297967;
        return r297968;
}

double f(double x, double y) {
        double r297969 = x;
        double r297970 = y;
        double r297971 = r297969 + r297970;
        double r297972 = 1.0;
        double r297973 = r297970 + r297972;
        double r297974 = r297971 / r297973;
        return r297974;
}

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