Average Error: 0.0 → 0.0
Time: 3.9s
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 r471008 = x;
        double r471009 = y;
        double r471010 = r471008 + r471009;
        double r471011 = 1.0;
        double r471012 = r471009 + r471011;
        double r471013 = r471010 / r471012;
        return r471013;
}

double f(double x, double y) {
        double r471014 = x;
        double r471015 = y;
        double r471016 = r471014 + r471015;
        double r471017 = 1.0;
        double r471018 = r471015 + r471017;
        double r471019 = r471016 / r471018;
        return r471019;
}

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