Average Error: 0.0 → 0.0
Time: 17.1s
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 r212922 = x;
        double r212923 = y;
        double r212924 = r212922 + r212923;
        double r212925 = 1.0;
        double r212926 = r212923 + r212925;
        double r212927 = r212924 / r212926;
        return r212927;
}

double f(double x, double y) {
        double r212928 = x;
        double r212929 = y;
        double r212930 = r212928 + r212929;
        double r212931 = 1.0;
        double r212932 = r212929 + r212931;
        double r212933 = r212930 / r212932;
        return r212933;
}

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