Average Error: 0.0 → 0.0
Time: 5.7s
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 r240114 = x;
        double r240115 = y;
        double r240116 = r240114 + r240115;
        double r240117 = 1.0;
        double r240118 = r240115 + r240117;
        double r240119 = r240116 / r240118;
        return r240119;
}

double f(double x, double y) {
        double r240120 = x;
        double r240121 = y;
        double r240122 = r240120 + r240121;
        double r240123 = 1.0;
        double r240124 = r240121 + r240123;
        double r240125 = r240122 / r240124;
        return r240125;
}

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