Average Error: 0.0 → 0.0
Time: 11.5s
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 r11814002 = x;
        double r11814003 = y;
        double r11814004 = r11814002 + r11814003;
        double r11814005 = 1.0;
        double r11814006 = r11814003 + r11814005;
        double r11814007 = r11814004 / r11814006;
        return r11814007;
}

double f(double x, double y) {
        double r11814008 = y;
        double r11814009 = x;
        double r11814010 = r11814008 + r11814009;
        double r11814011 = 1.0;
        double r11814012 = r11814008 + r11814011;
        double r11814013 = r11814010 / r11814012;
        return r11814013;
}

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