Average Error: 0.0 → 0.0
Time: 8.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 r117632 = x;
        double r117633 = y;
        double r117634 = r117632 + r117633;
        double r117635 = 1.0;
        double r117636 = r117633 + r117635;
        double r117637 = r117634 / r117636;
        return r117637;
}

double f(double x, double y) {
        double r117638 = x;
        double r117639 = y;
        double r117640 = r117638 + r117639;
        double r117641 = 1.0;
        double r117642 = r117639 + r117641;
        double r117643 = r117640 / r117642;
        return r117643;
}

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