Average Error: 0.0 → 0.0
Time: 7.0s
Precision: 64
\[\frac{x + y}{y + 1.0}\]
\[\frac{y + x}{y + 1.0}\]
\frac{x + y}{y + 1.0}
\frac{y + x}{y + 1.0}
double f(double x, double y) {
        double r11545768 = x;
        double r11545769 = y;
        double r11545770 = r11545768 + r11545769;
        double r11545771 = 1.0;
        double r11545772 = r11545769 + r11545771;
        double r11545773 = r11545770 / r11545772;
        return r11545773;
}

double f(double x, double y) {
        double r11545774 = y;
        double r11545775 = x;
        double r11545776 = r11545774 + r11545775;
        double r11545777 = 1.0;
        double r11545778 = r11545774 + r11545777;
        double r11545779 = r11545776 / r11545778;
        return r11545779;
}

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.0}\]
  2. Final simplification0.0

    \[\leadsto \frac{y + x}{y + 1.0}\]

Reproduce

herbie shell --seed 2019164 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  (/ (+ x y) (+ y 1.0)))