Average Error: 0.0 → 0.0
Time: 630.0ms
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 r212726 = x;
        double r212727 = y;
        double r212728 = r212726 + r212727;
        double r212729 = 1.0;
        double r212730 = r212727 + r212729;
        double r212731 = r212728 / r212730;
        return r212731;
}

double f(double x, double y) {
        double r212732 = x;
        double r212733 = y;
        double r212734 = r212732 + r212733;
        double r212735 = 1.0;
        double r212736 = r212733 + r212735;
        double r212737 = r212734 / r212736;
        return r212737;
}

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