Average Error: 0.0 → 0.0
Time: 1.2s
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 r235678 = x;
        double r235679 = y;
        double r235680 = r235678 + r235679;
        double r235681 = 1.0;
        double r235682 = r235679 + r235681;
        double r235683 = r235680 / r235682;
        return r235683;
}

double f(double x, double y) {
        double r235684 = x;
        double r235685 = y;
        double r235686 = r235684 + r235685;
        double r235687 = 1.0;
        double r235688 = r235685 + r235687;
        double r235689 = r235686 / r235688;
        return r235689;
}

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