Average Error: 0.0 → 0.0
Time: 13.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 r9187152 = x;
        double r9187153 = y;
        double r9187154 = r9187152 + r9187153;
        double r9187155 = 1.0;
        double r9187156 = r9187153 + r9187155;
        double r9187157 = r9187154 / r9187156;
        return r9187157;
}

double f(double x, double y) {
        double r9187158 = y;
        double r9187159 = x;
        double r9187160 = r9187158 + r9187159;
        double r9187161 = 1.0;
        double r9187162 = r9187158 + r9187161;
        double r9187163 = r9187160 / r9187162;
        return r9187163;
}

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