Average Error: 0.0 → 0.0
Time: 1.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 r205698 = x;
        double r205699 = y;
        double r205700 = r205698 + r205699;
        double r205701 = 1.0;
        double r205702 = r205699 + r205701;
        double r205703 = r205700 / r205702;
        return r205703;
}

double f(double x, double y) {
        double r205704 = x;
        double r205705 = y;
        double r205706 = r205704 + r205705;
        double r205707 = 1.0;
        double r205708 = r205705 + r205707;
        double r205709 = r205706 / r205708;
        return r205709;
}

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