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 r205767 = x;
        double r205768 = y;
        double r205769 = r205767 + r205768;
        double r205770 = 1.0;
        double r205771 = r205768 + r205770;
        double r205772 = r205769 / r205771;
        return r205772;
}

double f(double x, double y) {
        double r205773 = x;
        double r205774 = y;
        double r205775 = r205773 + r205774;
        double r205776 = 1.0;
        double r205777 = r205774 + r205776;
        double r205778 = r205775 / r205777;
        return r205778;
}

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