Average Error: 0.0 → 0.0
Time: 7.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 r134014 = x;
        double r134015 = y;
        double r134016 = r134014 + r134015;
        double r134017 = 1.0;
        double r134018 = r134015 + r134017;
        double r134019 = r134016 / r134018;
        return r134019;
}

double f(double x, double y) {
        double r134020 = x;
        double r134021 = y;
        double r134022 = r134020 + r134021;
        double r134023 = 1.0;
        double r134024 = r134021 + r134023;
        double r134025 = r134022 / r134024;
        return r134025;
}

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