Average Error: 0.0 → 0.0
Time: 856.0ms
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 r178717 = x;
        double r178718 = y;
        double r178719 = r178717 + r178718;
        double r178720 = 1.0;
        double r178721 = r178718 + r178720;
        double r178722 = r178719 / r178721;
        return r178722;
}

double f(double x, double y) {
        double r178723 = x;
        double r178724 = y;
        double r178725 = r178723 + r178724;
        double r178726 = 1.0;
        double r178727 = r178724 + r178726;
        double r178728 = r178725 / r178727;
        return r178728;
}

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