Average Error: 0.0 → 0.0
Time: 10.4s
Precision: 64
\[\frac{x + y}{y + 1}\]
\[\frac{y + x}{y + 1}\]
\frac{x + y}{y + 1}
\frac{y + x}{y + 1}
double f(double x, double y) {
        double r11457885 = x;
        double r11457886 = y;
        double r11457887 = r11457885 + r11457886;
        double r11457888 = 1.0;
        double r11457889 = r11457886 + r11457888;
        double r11457890 = r11457887 / r11457889;
        return r11457890;
}

double f(double x, double y) {
        double r11457891 = y;
        double r11457892 = x;
        double r11457893 = r11457891 + r11457892;
        double r11457894 = 1.0;
        double r11457895 = r11457891 + r11457894;
        double r11457896 = r11457893 / r11457895;
        return r11457896;
}

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{y + x}{y + 1}\]

Reproduce

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