Average Error: 0.0 → 0.0
Time: 1.5s
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 r212743 = x;
        double r212744 = y;
        double r212745 = r212743 + r212744;
        double r212746 = 1.0;
        double r212747 = r212744 + r212746;
        double r212748 = r212745 / r212747;
        return r212748;
}

double f(double x, double y) {
        double r212749 = x;
        double r212750 = y;
        double r212751 = r212749 + r212750;
        double r212752 = 1.0;
        double r212753 = r212750 + r212752;
        double r212754 = r212751 / r212753;
        return r212754;
}

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