Average Error: 0.0 → 0.0
Time: 1.8s
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 r239086 = x;
        double r239087 = y;
        double r239088 = r239086 + r239087;
        double r239089 = 1.0;
        double r239090 = r239087 + r239089;
        double r239091 = r239088 / r239090;
        return r239091;
}

double f(double x, double y) {
        double r239092 = x;
        double r239093 = y;
        double r239094 = r239092 + r239093;
        double r239095 = 1.0;
        double r239096 = r239093 + r239095;
        double r239097 = r239094 / r239096;
        return r239097;
}

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