Average Error: 0.0 → 0.0
Time: 1.7s
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 r180885 = x;
        double r180886 = y;
        double r180887 = r180885 + r180886;
        double r180888 = 1.0;
        double r180889 = r180886 + r180888;
        double r180890 = r180887 / r180889;
        return r180890;
}

double f(double x, double y) {
        double r180891 = x;
        double r180892 = y;
        double r180893 = r180891 + r180892;
        double r180894 = 1.0;
        double r180895 = r180892 + r180894;
        double r180896 = r180893 / r180895;
        return r180896;
}

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