Average Error: 0.0 → 0.0
Time: 8.6s
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 r157702 = x;
        double r157703 = y;
        double r157704 = r157702 + r157703;
        double r157705 = 1.0;
        double r157706 = r157703 + r157705;
        double r157707 = r157704 / r157706;
        return r157707;
}

double f(double x, double y) {
        double r157708 = x;
        double r157709 = y;
        double r157710 = r157708 + r157709;
        double r157711 = 1.0;
        double r157712 = r157709 + r157711;
        double r157713 = r157710 / r157712;
        return r157713;
}

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