Average Error: 0.0 → 0.0
Time: 938.0ms
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 r216504 = x;
        double r216505 = y;
        double r216506 = r216504 + r216505;
        double r216507 = 1.0;
        double r216508 = r216505 + r216507;
        double r216509 = r216506 / r216508;
        return r216509;
}

double f(double x, double y) {
        double r216510 = x;
        double r216511 = y;
        double r216512 = r216510 + r216511;
        double r216513 = 1.0;
        double r216514 = r216511 + r216513;
        double r216515 = r216512 / r216514;
        return r216515;
}

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