Average Error: 0.0 → 0.0
Time: 1.9s
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 r250583 = x;
        double r250584 = y;
        double r250585 = r250583 + r250584;
        double r250586 = 1.0;
        double r250587 = r250584 + r250586;
        double r250588 = r250585 / r250587;
        return r250588;
}

double f(double x, double y) {
        double r250589 = x;
        double r250590 = y;
        double r250591 = r250589 + r250590;
        double r250592 = 1.0;
        double r250593 = r250590 + r250592;
        double r250594 = r250591 / r250593;
        return r250594;
}

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